mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
16f737af65
git-svn-id: svn://svn.cc65.org/cc65/trunk@2796 b7a2c559-68d2-44c3-8de9-860c34a00d81
27 lines
551 B
ArmAsm
27 lines
551 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 2003-12-19
|
|
;
|
|
; READST kernal call
|
|
;
|
|
|
|
.export READST
|
|
|
|
.import sys_bank, restore_bank
|
|
.import sysp0: zp, ktmp: zp
|
|
|
|
.include "cbm610.inc"
|
|
|
|
|
|
.proc READST
|
|
|
|
jsr sys_bank
|
|
sty ktmp ; Save Y register
|
|
ldy #$9C ; STATUS
|
|
lda (sysp0),y ; Load STATUS from system bank
|
|
ldy ktmp
|
|
jmp restore_bank ; Will set condition codes on A
|
|
|
|
.endproc
|
|
|
|
|