]> git.sur5r.net Git - cc65/blobdiff - libsrc/plus4/crt0.s
Moved the data that keeps a copy of the used zero page locations in its own
[cc65] / libsrc / plus4 / crt0.s
index 3b75860095fb3dfb1974b04f23b83a12d4f6acef..032ad7947027003eaa3b588349815de1ed17f9a1 100644 (file)
@@ -147,8 +147,8 @@ IRQ:    cld                 ; Just to be sure
         bne     dobreak
 
 ; It's an IRQ and RAM is enabled. If we have handlers, call them. We will use
-; a flag here instead of loading __INTERRUPTOR_COUNT__ directly, since the 
-; condes function is not reentrant. The irqcount flag will be set/reset from 
+; a flag here instead of loading __INTERRUPTOR_COUNT__ directly, since the
+; condes function is not reentrant. The irqcount flag will be set/reset from
 ; the main code, to avoid races.
 
        ldy     irqcount
@@ -194,13 +194,16 @@ nohandler:
 ; Data
 
 .data
-zpsave:                .res    zpspace
 
 ; BRK handling
 brk_jmp:        jmp     $0000
 
 spsave:                .res    1
 
+.segment        "ZPSAVE"
+
+zpsave:                .res    zpspace
+
 .bss
 irqcount:       .byte   0