mirror of
https://github.com/cc65/cc65.git
synced 2024-11-09 19:05:21 +00:00
a1fa833da3
git-svn-id: svn://svn.cc65.org/cc65/trunk@1304 b7a2c559-68d2-44c3-8de9-860c34a00d81
30 lines
688 B
ArmAsm
30 lines
688 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 26.05.2002
|
|
;
|
|
; CC65 runtime: zeropage usage
|
|
;
|
|
|
|
.exportzp sp, sreg, regsave
|
|
.exportzp ptr1, ptr2, ptr3, ptr4
|
|
.exportzp tmp1, tmp2, tmp3, tmp4
|
|
.exportzp regbank
|
|
|
|
; ------------------------------------------------------------------------
|
|
|
|
.zeropage
|
|
|
|
zpstart = *
|
|
sp: .res 2 ; Stack pointer
|
|
sreg: .res 2 ; Secondary register/high 16 bit for longs
|
|
regsave: .res 4 ; slot to save/restore (E)AX into
|
|
ptr1: .res 2
|
|
ptr2: .res 2
|
|
ptr3: .res 2
|
|
ptr4: .res 2
|
|
tmp1: .res 1
|
|
tmp2: .res 1
|
|
tmp3: .res 1
|
|
tmp4: .res 1
|
|
regbank: .res 6 ; 6 byte register bank
|
|
|