mirror of
https://github.com/cc65/cc65.git
synced 2024-08-19 17:29:37 +00:00
39 lines
516 B
ArmAsm
39 lines
516 B
ArmAsm
|
|
;
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
;
|
|
; 25.12.1999, 2.1.2003
|
|
|
|
; char FindFTypes (char *buffer, char fileType, char fileMax, char *Class);
|
|
|
|
.export _FindFTypes
|
|
.import popax, popa, setoserror
|
|
|
|
.include "../inc/jumptab.inc"
|
|
.include "../inc/geossym.inc"
|
|
|
|
.code
|
|
|
|
_FindFTypes:
|
|
sta r10L
|
|
stx r10H
|
|
jsr popa
|
|
sta r7H
|
|
sta tmpFileMax
|
|
jsr popa
|
|
sta r7L
|
|
jsr popax
|
|
sta r6L
|
|
stx r6H
|
|
jsr FindFTypes
|
|
jsr setoserror
|
|
; return (fileMax - r7H)
|
|
lda tmpFileMax
|
|
sec
|
|
sbc r7H
|
|
rts
|
|
|
|
.bss
|
|
|
|
tmpFileMax: .res 1
|