Skip to content

Commit

Permalink
Disasm rst and interrupt vectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqui committed Jul 23, 2012
1 parent ea2d24e commit bbd77f0
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions main.asm
@@ -1,8 +1,56 @@
SECTION "bank0",HOME

INCBIN "baserom.gbc",0,$100
SECTION "rst0",HOME[$0]
di
jp Start

SECTION "rst8",HOME[$8]
jp $2d63

SECTION "rst10",HOME[$10] ; Bankswitch
ld [$ff9d], a
ld [$2000], a
ret

SECTION "rst18",HOME[$18] ; Unused
rst $38

SECTION "rst20",HOME[$20] ; Unused
rst $38

SECTION "rst28",HOME[$28] ; Jump from pointer table
push de
ld e, a
ld d, 00
add hl, de
add hl, de
ld a, [hli]
ld h, [hl]
ld l, a
pop de
jp [hl] ; (actually jp hl)

; rst30 is midst rst28

SECTION "rst38",HOME[$38] ; Unused
rst $38

SECTION "vblank",HOME[$40] ; vblank interrupt
jp $0283

SECTION "lcd",HOME[$48] ; lcd interrupt
jp $0552

SECTION "timer",HOME[$50] ; timer interrupt
jp $3e93

SECTION "serial",HOME[$58] ; serial interrupt
jp $06ef

SECTION "joypad",HOME[$60] ; joypad interrupt
jp $092e

SECTION "romheader",HOME[$100]
Start:
nop
jp $016e

Expand Down

0 comments on commit bbd77f0

Please sign in to comment.