68k vector table

From NeoGeo Development Wiki
Revision as of 20:41, 6 March 2011 by Furrtek (talk | contribs)
Jump to navigation Jump to search

Default ASM vector tables for 68k binaries. $C00426 is a BIOS call for a complete reset on every systems (?).

For cartridge systems

    org  $0
    dc.l $0010F300            ; Initial SP
    dc.l $00C00402            ; Initial PC
    dc.l $00C00408,$00C0040E,$00C0040E,$0000034C       ; Bus error (2),Address error (3),Illegal Instruction (4),Divide by 0 (5)
    dc.l $0000034E,$0000034E,$00C0041A,$00C00420       ; CHK Instruction (6),TRAPV Instruction (7),Privilege Violation (8),Trace (9)
    dc.l $0000034E,$0000034E,$00C00426,$00C00426       ; Emu(10),Emu(11),Reserved,Reserved
    dc.l $00C00426,$00C0042C,$00C00426,$00C00426       ; Reserved,Reserved,Reserved,Reserved
    dc.l $00C00426,$00C00426,$00C00426,$00C00426       ; Reserved,Reserved,Reserved,Reserved
    dc.l $00C00426,$00C00426,$00C00432,   VBlank       ; Reserved,Reserved,Spurious Interrupt...
    dc.l      IRQ2,$00C00426,$00C00426,$00C00426
    dc.l $00C00426,$00C00426,$0000056E,$0000056E       ; Auto,Auto,Trap 0, Trap1...
    dc.l $0000056E,$0000056E,$0000056E,$0000056E
    dc.l $FFFFFFFF,$FFFFFFFF,$FFFFFFFF,$FFFFFFFF
    dc.l $FFFFFFFF,$FFFFFFFF,$FFFFFFFF,$FFFFFFFF
    dc.l $FFFFFFFF,$FFFFFFFF,$FFFFFFFF,$FFFFFFFF
    dc.l $FFFFFFFF,$FFFFFFFF,$FFFFFFFF,$FFFFFFFF
    dc.l $FFFFFFFF,$FFFFFFFF,$FFFFFFFF,$FFFFFFFF
    dc.l $FFFFFFFF,$FFFFFFFF,$FFFFFFFF,$FFFFFFFF
    dc.l $FFFFFFFF,$FFFFFFFF

For CD systems

    org  $0
    dc.l $0010F300,$00C00402,$00C00408,$00C0040E
    dc.l $00C00414,$00C00426,$00C00426,$00C00426
    dc.l $00C0041A,$00C00420,$00C00426,$00C00426
    dc.l $00C00426,$00C00426,$00C00426,$00C0042C
    dc.l $00C00522,$00C00528,$00C0052E,$00C00534
    dc.l $00C0053A,$00C004F2,$00C004EC,$00C004E6
    dc.l $00C004E0,     IRQ2,   VBlank,     IRQ3
    dc.l   Generic,  Generic,  Generic,  Generic
    dc.l   Generic,  Generic,  Generic,  Generic
    dc.l   Generic,  Generic,  Generic,  Generic
    dc.l   Generic,  Generic,  Generic,  Generic
    dc.l   Generic,  Generic,  Generic,  Generic
    dc.l $00C00426,$00C00426,$00C00426,$00C00426
    dc.l $00C00426,$00C00426,$00C00426,$00C00426
    dc.l $00C00426,$00C00426,$00C00426,$00C00426
    dc.l $00C00426,$00C00426,$00C00426,$00C00426