some cleanups

This commit is contained in:
Christian Groessler 2013-06-19 11:05:03 +02:00
parent 47d16e86a4
commit 2a525f8a48

View file

@ -51,8 +51,6 @@ sram_init:
stx NMIEN ; disable NMI stx NMIEN ; disable NMI
; disable ROMs ; disable ROMs
;inx
;stx enable_count
disable_rom disable_rom
; setup interrupt vectors ; setup interrupt vectors
@ -95,7 +93,6 @@ sram_init:
.segment "EXTZP" : zeropage .segment "EXTZP" : zeropage
zpptr1: .res 2 zpptr1: .res 2
;zpptr2: .res 2
.segment "LOWBUFS" .segment "LOWBUFS"
@ -180,7 +177,8 @@ my_NMI_han:
int_wrap NMI_save int_wrap NMI_save
my_RESET_han: my_RESET_han:
int_wrap RESET_save enable_rom
jmp (RESET_save)
; System request handlers ; System request handlers
@ -200,7 +198,6 @@ CIO_fn_cont:
jsr CIO_call_a ; call CIO (maybe A isn't needed, then we could call CIO_call) jsr CIO_call_a ; call CIO (maybe A isn't needed, then we could call CIO_call)
php php
pha pha
;@@@ check if X is preserved over CIO call
jsr restore_icba ; restore original ICBAL/ICBAH jsr restore_icba ; restore original ICBAL/ICBAH
pla pla
plp plp