+; Fill unused memory with ff to be kind to flash memory.
; All jump vectors just jump to main code.
- ld sp,$e000 ; Setup stackpointer.
+ ; ldh is a special opcode for gameboy.
+ ; ldh (x),a essentially writes content of a to address $ff00 + x
+ ; by coincidence the gameboys memory mapped i/o is in address range $ff00 -> $ffff
+ ld sp,$d900 ; Setup stackpointer.
ld hl,$8000 ; Load address to tile ram
ld de,gfx ; Load address to graphics data.
jp nz,- ; repeat until b is 0.
+ ld a,%10010001 ; LCD Controller = On BG = On Sprites = Off