Skip to content

Sync code improvements from dev-to-unidisk branch#10

Merged
rigreco merged 3 commits into
masterfrom
claude/sync-code-improvements-011CUsJifp8nxnU5xks2YLi3
Nov 6, 2025
Merged

Sync code improvements from dev-to-unidisk branch#10
rigreco merged 3 commits into
masterfrom
claude/sync-code-improvements-011CUsJifp8nxnU5xks2YLi3

Conversation

@rigreco

@rigreco rigreco commented Nov 6, 2025

Copy link
Copy Markdown
Owner

Summary

Selective merge of code quality improvements from the historical dev-to-unidisk branch (created ~5 years ago). This PR brings cosmetic improvements only while preserving all modern workflow infrastructure (Build.yml v5, Build-Project.yml, ubuntu-24.04).

Files Changed (13 total)

Modified Assembly Files (7 files)

  • AppleII/FP-ADD/Unidrive4.S
  • AppleII/Integer-adc-1-Byte/Unicalc.S
  • AppleII/Integer-adc-2-Byte/Unidrive2.S
  • AppleII/Integer-adc-2-Byte/UnidriveU.S
  • AppleII/Memory-dump/Uniprox.S
  • AppleII/Memory-dump/Uniproz.S
  • AppleII/N-integer-adc-2-Byte/Unidrive3.S

New Files (6 files)

  • AppleII/FP-operations/Conv3p.S (143 lines) - BASIC ↔ FP format converter
  • AppleII/FP-ADD/_FileInformation.txt
  • AppleII/Integer-adc-1-Byte/_FileInformation.txt
  • AppleII/Integer-adc-2-Byte/UNIFUN2.bas
  • AppleII/Memory-dump/_FileInformation.txt
  • AppleII/N-integer-adc-2-Byte/UNIDFUN3.bas

Changes Made

All changes are cosmetic only - verified safe with no logic modifications:

1. Standardized File Headers

*    File Name: Unidrive4.s
*    Description: Floating Point ADD operation

1. Explicit Merlin32 Directives

*   XC          ; Enable 65C02 INSTRUCTION
*   TYP $06     ; Binary File Type
*   AUX $8000  ; Auxiliary Type (load address)

Selective merge of code quality improvements from the historical
dev-to-unidisk branch (5 years old), preserving modern workflows.

Modified Files (7 assembly files):
- AppleII/FP-ADD/Unidrive4.S
- AppleII/Integer-adc-1-Byte/Unicalc.S
- AppleII/Integer-adc-2-Byte/Unidrive2.S
- AppleII/Integer-adc-2-Byte/UnidriveU.S
- AppleII/Memory-dump/Uniprox.S
- AppleII/Memory-dump/Uniproz.S
- AppleII/N-integer-adc-2-Byte/Unidrive3.S

New Files (6 files):
- AppleII/FP-operations/Conv3p.S (BASIC-FP converter)
- _FileInformation.txt files (3)
- UNIFUN2.bas, UNIDFUN3.bas (2)

Changes: Cosmetic only (headers, directives, indentation)
No logic modifications - compilation identical
Modern workflows preserved (Build.yml v5, Build-Project.yml)

+356 insertions, -162 deletions, 13 files changed
ProDOS volume names cannot contain hyphens, underscores or spaces.
Projects like 'FP-ADD' were causing build failures.

Changes:
- Sanitize project name by removing -, _, and spaces
- Truncate to 15 characters (ProDOS max)
- Apply to volume name and all file paths

Transforms:
- 'FP-ADD' → 'FPADD'
- 'Integer-adc-1-Byte' → 'Integeradc1Byt'
- 'Memory-dump' → 'Memorydump'

Fixes build error:
Error: Invalid Prodos name 'FP-ADD'
The command 'tr -d "-_"' was interpreting -_ as an option.
Split into separate tr commands to avoid syntax issues.

Before: tr -d '-_'
After:  tr -d '_' | tr -d '-' | tr -d ' '

This properly removes hyphens, underscores and spaces.
@rigreco rigreco merged commit 5aa7445 into master Nov 6, 2025
1 check passed
@rigreco rigreco deleted the claude/sync-code-improvements-011CUsJifp8nxnU5xks2YLi3 branch November 6, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants