diff options
| author | Ian C <ianc@noddybox.co.uk> | 2018-09-11 17:20:27 +0000 |
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2018-09-11 17:20:27 +0000 |
| commit | 2ceabcaee4920928c4d0230fa7b570f80c1d66ae (patch) | |
| tree | b8afa66c9d9759c2da16f5273e952bbb3add79b9 /main.asm | |
| parent | 3b5ebdfe6a006f51682292c44415525e178f8a4c (diff) | |
Rejigged initialisation and removed green background code.
Diffstat (limited to 'main.asm')
| -rw-r--r-- | main.asm | 37 |
1 files changed, 20 insertions, 17 deletions
@@ -3,26 +3,29 @@ option output-file,"main.lib" option output-format,lib - option snes-irq,vbl,vbl_handler - option snes-irq,irq,irq_handler - - ; Initialise SNES - ; org $8000 bank 0 - include init.asm - - ; Set the background color to green. - sep #$20 ; Set the A register to 8-bit. - lda #%10000000 ; Force VBlank by turning off the screen. - sta $2100 - lda #%11100000 ; Load the low byte of the green color. - sta $2122 - lda #%00000000 ; Load the high byte of the green color. - sta $2122 - lda #%00001111 ; End VBlank, setting brightness to 15 (100%). - sta $2100 + ; Initialise SNES + ; + include "snes.inc" + + sei + clc + xce + + .x16 + rep #$10 + ldx #$1fff + txs + + .x8 + .m8 + sep #$30 ; X,Y,A are 8 bit numbers + + include "init.inc" + + cli ; Loop forever. Forever: |
