mirror of
https://github.com/a2-4am/a2fc.system.git
synced 2024-11-05 01:04:44 +00:00
combine MLI read calls to save 2 more bytes
This commit is contained in:
parent
1865094712
commit
9f27d9db12
@ -54,9 +54,7 @@ Open
|
||||
!byte kMLIOpen
|
||||
!word mliParamForOpen
|
||||
bcs Quit
|
||||
lda #kMLIRead
|
||||
ldy #kMLIReadCount
|
||||
jsr CallMLI
|
||||
jsr Read
|
||||
bcs Close
|
||||
;DHGRCopy
|
||||
ldx #$20
|
||||
@ -74,10 +72,7 @@ Open
|
||||
inc .copyb+2
|
||||
dex
|
||||
bne .writeToAux
|
||||
;Read
|
||||
lda #kMLIRead
|
||||
ldy #kMLIReadCount
|
||||
jsr CallMLI
|
||||
jsr Read
|
||||
Close
|
||||
php
|
||||
lda #kMLIClose
|
||||
@ -98,6 +93,10 @@ Close
|
||||
Quit
|
||||
lda #kMLIQuit
|
||||
ldy #kMLIQuitCount
|
||||
bne CallMLI ; always branches
|
||||
Read
|
||||
lda #kMLIRead
|
||||
ldy #kMLIReadCount
|
||||
CallMLI
|
||||
sta mlicmd
|
||||
sty mliparam
|
||||
|
Loading…
Reference in New Issue
Block a user