diff --git a/src/a2fc.system.a b/src/a2fc.system.a index 52c9691..1bda0b9 100644 --- a/src/a2fc.system.a +++ b/src/a2fc.system.a @@ -38,33 +38,31 @@ MACHID = $BF98 inputfilebuffer !fill $40 Start - ldx #(CodeEnd-CodeStart); copy code to lower memory so we can load graphic at $2000 -- ldy CodeStart-1,x - sty $4f,x - dex - bne - + ldy #(CodeEnd-CodeStart) ; copy code to lower memory so we can load graphic at $2000 +- ldx CodeStart-1,y ; the last byte fetched is the '3' for kMLIOpenCount + ; it will be converted later to a '4' for become kMLIReadOrQuitCount + ; also used for switching from aux to main memory access + stx $4f,y + dey + bne - ; Y is 0 on exit, required later ;CheckFor128K lda MACHID and #$30 cmp #$30 ; 128K? beq + ; yes, continue - stx inputfilebuffer ; no, trash inputfilebuffer so open fails and we quit immediately + sty inputfilebuffer ; no, trash inputfilebuffer so open fails and we quit immediately + jsr MLI ; open file !byte kMLIOpen !word mliParamForOpen - lda #4 - sta