mirror of
https://github.com/cc65/cc65.git
synced 2024-11-04 17:04:58 +00:00
c271f18d00
git-svn-id: svn://svn.cc65.org/cc65/trunk@4159 b7a2c559-68d2-44c3-8de9-860c34a00d81
36 lines
596 B
ArmAsm
36 lines
596 B
ArmAsm
;
|
|
; Oliver Schmidt, 30.12.2004
|
|
;
|
|
; Apple ProDOS 8 MLI
|
|
;
|
|
|
|
.import __dos_type
|
|
|
|
.include "mli.inc"
|
|
|
|
.bss
|
|
|
|
mliparam:.tag MLI
|
|
|
|
.data
|
|
|
|
callmli:
|
|
; Store parameters
|
|
sta call
|
|
stx mliparam
|
|
|
|
; Check for ProDOS 8
|
|
lda __dos_type
|
|
beq oserr
|
|
|
|
; Call MLI and return
|
|
jsr $BF00 ; MLI call entry point
|
|
call: .byte $00
|
|
.addr mliparam
|
|
rts
|
|
|
|
; Load oserror code and return
|
|
oserr: lda #$01 ; "Invalid MLI function code number"
|
|
sec
|
|
rts
|