2002-05-26 08:29:31 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 26.05.2002
|
|
|
|
;
|
|
|
|
; CC65 runtime: zeropage usage
|
|
|
|
;
|
|
|
|
|
2012-11-04 15:23:05 +00:00
|
|
|
.include "zeropage.inc"
|
2002-05-26 08:29:31 +00:00
|
|
|
|
|
|
|
; ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.zeropage
|
|
|
|
|
2002-05-26 08:32:47 +00:00
|
|
|
sp: .res 2 ; Stack pointer
|
|
|
|
sreg: .res 2 ; Secondary register/high 16 bit for longs
|
2012-11-04 15:23:05 +00:00
|
|
|
regsave: .res 4 ; Slot to save/restore (E)AX into
|
2002-05-26 08:29:31 +00:00
|
|
|
ptr1: .res 2
|
|
|
|
ptr2: .res 2
|
|
|
|
ptr3: .res 2
|
|
|
|
ptr4: .res 2
|
|
|
|
tmp1: .res 1
|
|
|
|
tmp2: .res 1
|
|
|
|
tmp3: .res 1
|
|
|
|
tmp4: .res 1
|
2012-11-04 15:23:05 +00:00
|
|
|
regbank: .res regbanksize ; Register bank
|
2002-05-26 08:29:31 +00:00
|
|
|
|
2003-02-16 14:31:03 +00:00
|
|
|
; Add an empty EXTZP zeropage segment to avoid linker warnings that this
|
|
|
|
; segment does not exist (it does not exist in most builtin linker configs
|
|
|
|
; but is used when linking modules).
|
|
|
|
|
2003-11-09 23:00:22 +00:00
|
|
|
.segment "EXTZP" : zeropage
|
2003-02-16 14:31:03 +00:00
|
|
|
|