mirror of
https://github.com/a2-4am/passport.git
synced 2025-01-05 06:29:36 +00:00
shave some bytes
This commit is contained in:
parent
7bd584ec34
commit
d1597bfb5f
16
src/mli.a
16
src/mli.a
@ -276,6 +276,7 @@ ReadFile
|
|||||||
sta mliparam+1 ; store file reference number
|
sta mliparam+1 ; store file reference number
|
||||||
lda #CMD_READ ; MLI read command
|
lda #CMD_READ ; MLI read command
|
||||||
ldy #PC_READ ; number of parameters for 'read' command
|
ldy #PC_READ ; number of parameters for 'read' command
|
||||||
|
JsrMLIAndReturnPlus1
|
||||||
jsr mli
|
jsr mli
|
||||||
bcs +
|
bcs +
|
||||||
lda mliparam+1 ; if no error, return file reference number
|
lda mliparam+1 ; if no error, return file reference number
|
||||||
@ -295,10 +296,7 @@ SetMark
|
|||||||
sta mliparam+1 ; store file reference number
|
sta mliparam+1 ; store file reference number
|
||||||
lda #CMD_SETMARK ; MLI set_mark command
|
lda #CMD_SETMARK ; MLI set_mark command
|
||||||
ldy #PC_SETMARK ; number of params for 'set_mark' cmd
|
ldy #PC_SETMARK ; number of params for 'set_mark' cmd
|
||||||
jsr mli
|
bne JsrMLIAndReturnPlus1
|
||||||
bcs +
|
|
||||||
lda mliparam+1 ; if no error, return file refnum
|
|
||||||
+ rts
|
|
||||||
|
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
; write to an open file via ProDOS MLI
|
; write to an open file via ProDOS MLI
|
||||||
@ -314,10 +312,7 @@ WriteFile
|
|||||||
sta mliparam+1 ; store file reference number
|
sta mliparam+1 ; store file reference number
|
||||||
lda #CMD_WRITE ; MLI write command
|
lda #CMD_WRITE ; MLI write command
|
||||||
ldy #PC_WRITE ; number of parameters for 'write' command
|
ldy #PC_WRITE ; number of parameters for 'write' command
|
||||||
jsr mli
|
bne JsrMLIAndReturnPlus1
|
||||||
bcs +
|
|
||||||
lda mliparam+1 ; if no error, return file reference number
|
|
||||||
+ rts
|
|
||||||
|
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
; set file size in an open file via ProDOS MLI
|
; set file size in an open file via ProDOS MLI
|
||||||
@ -333,10 +328,7 @@ SetEOF
|
|||||||
sta mliparam+1 ; store file reference number
|
sta mliparam+1 ; store file reference number
|
||||||
lda #CMD_SETEOF ; MLI set_eof command
|
lda #CMD_SETEOF ; MLI set_eof command
|
||||||
ldy #PC_SETEOF ; number of params for 'set_eof' cmd
|
ldy #PC_SETEOF ; number of params for 'set_eof' cmd
|
||||||
jsr mli
|
bne JsrMLIAndReturnPlus1
|
||||||
bcs +
|
|
||||||
lda mliparam+1 ; if no error, return file refnum
|
|
||||||
+ rts
|
|
||||||
|
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
; close an open file
|
; close an open file
|
||||||
|
Loading…
Reference in New Issue
Block a user