mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2024-12-27 23:31:04 +00:00
Fixed #131: Pascal compilation to/from disk file.
This commit is contained in:
parent
914ba2d4ba
commit
58bd4f2167
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
@ -78,6 +78,7 @@ PREPATH LDX MOSFILE ; Length
|
||||
:APPEND JSR APFXMF ; Append MOSFILE->PREFIX
|
||||
JSR PFXtoMF ; Copy back to MOSFILE
|
||||
:EXIT JSR DIGCONV ; Handle initial digits
|
||||
JSR USCONV ; Handle any underscores
|
||||
CLC
|
||||
RTS
|
||||
:ERR LDA #$40 ; $40=Bad filename
|
||||
@ -158,6 +159,18 @@ APFXMF LDY PREFIX ; Length of PREFIX
|
||||
:DONE STY PREFIX ; Update length PREFIX
|
||||
RTS
|
||||
|
||||
* Scan pathname in MOSFILE converting '_' to '.'
|
||||
USCONV LDX MOSFILE ; Length
|
||||
BEQ :EXIT ; Nothing to replace
|
||||
:L1 LDA MOSFILE,X
|
||||
CMP #'_'
|
||||
BNE :S1
|
||||
LDA #'.'
|
||||
STA MOSFILE,X
|
||||
:S1 DEX
|
||||
BNE :L1
|
||||
:EXIT RTS
|
||||
|
||||
* Scan pathname in MOSFILE converting files/dirs
|
||||
* starting with digit by adding 'N' before.
|
||||
DIGCONV LDY #$01 ; First char
|
||||
|
Loading…
Reference in New Issue
Block a user