more cleanup

This commit is contained in:
mrdudz
2015-11-29 20:04:10 +01:00
parent c636675521
commit b39a8b7a61
13 changed files with 669 additions and 607 deletions

View File

@@ -17,8 +17,12 @@ Start:
sei
cld
ldx #0
stx ZP_IRQ_CTRL ; disable calling cartridge IRQ/NMI handler
; Setup stack and memory mapping
ldx #$FF ; Stack top ($01FF)
;ldx #$FF ; Stack top ($01FF)
dex
txs
; Clear the BSS data
@@ -36,6 +40,8 @@ Start:
; Call module constructors
jsr initlib
lda #1
sta ZP_IRQ_CTRL ; enable calling cartridge IRQ/NMI handler
cli ; allow IRQ only after constructors have run
; Pass an empty command line