Skip to content
This repository
Browse code

Disasm rst and interrupt vectors.

  • Loading branch information...
commit bbd77f0693e0f5d2320b0ad5d19ba943c1367bae 1 parent ea2d24e
Sanky Sanqui authored July 23, 2012

Showing 1 changed file with 50 additions and 2 deletions. Show diff stats Hide diff stats

  1. 52  main.asm
52  main.asm
... ...
@@ -1,8 +1,56 @@
1 1
 SECTION "bank0",HOME
2  
-
3  
-INCBIN "baserom.gbc",0,$100
  2
+SECTION "rst0",HOME[$0]
  3
+    di
  4
+    jp Start
  5
+
  6
+SECTION "rst8",HOME[$8]
  7
+    jp $2d63
  8
+
  9
+SECTION "rst10",HOME[$10] ; Bankswitch
  10
+    ld [$ff9d], a
  11
+    ld [$2000], a
  12
+    ret
  13
+
  14
+SECTION "rst18",HOME[$18] ; Unused
  15
+    rst $38
  16
+
  17
+SECTION "rst20",HOME[$20] ; Unused
  18
+    rst $38
  19
+
  20
+SECTION "rst28",HOME[$28] ; Jump from pointer table
  21
+    push de
  22
+    ld e, a
  23
+    ld d, 00
  24
+    add hl, de
  25
+    add hl, de
  26
+    ld a, [hli]
  27
+    ld h, [hl]
  28
+    ld l, a
  29
+    pop de
  30
+    jp [hl] ; (actually jp hl)
  31
+
  32
+; rst30 is midst rst28
  33
+
  34
+SECTION "rst38",HOME[$38] ; Unused
  35
+    rst $38
  36
+
  37
+SECTION "vblank",HOME[$40] ; vblank interrupt
  38
+    jp $0283
  39
+
  40
+SECTION "lcd",HOME[$48] ; lcd interrupt
  41
+    jp $0552
  42
+    
  43
+SECTION "timer",HOME[$50] ; timer interrupt
  44
+    jp $3e93
  45
+
  46
+SECTION "serial",HOME[$58] ; serial interrupt
  47
+    jp $06ef
  48
+    
  49
+SECTION "joypad",HOME[$60] ; joypad interrupt
  50
+    jp $092e
4 51
 
5 52
 SECTION "romheader",HOME[$100]
  53
+Start:
6 54
 	nop
7 55
 	jp $016e
8 56
 

0 notes on commit bbd77f0

Please sign in to comment.
Something went wrong with that request. Please try again.