| 1 | dc.l 0x0,0x200\r |
| 2 | dc.l INT,INT,INT,INT,INT,INT,INT\r |
| 3 | dc.l INT,INT,INT,INT,INT,INT,INT,INT\r |
| 4 | dc.l INT,INT,INT,INT,INT,INT,INT,INT\r |
| 5 | dc.l INT,INT,INT,HBL,INT,VBL,INT,INT\r |
| 6 | dc.l INT,INT,INT,INT,INT,INT,INT,INT\r |
| 7 | dc.l INT,INT,INT,INT,INT,INT,INT,INT\r |
| 8 | dc.l INT,INT,INT,INT,INT,INT,INT,INT\r |
| 9 | dc.l INT,INT,INT,INT,INT,INT,INT\r |
| 10 | .ascii "SEGA GENESIS "\r |
| 11 | .ascii "hexed (c) notaz, 2009 "\r |
| 12 | .ascii "HEXED (C) NOTAZ, 2009 "\r |
| 13 | .ascii "GM 00000000-00"\r |
| 14 | .byte 0x00,0x00\r |
| 15 | .ascii "JD "\r |
| 16 | .byte 0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00\r |
| 17 | .byte 0x00,0xff,0x00,0x00,0xff,0xff,0xff,0xff\r |
| 18 | .ascii " "\r |
| 19 | .ascii " "\r |
| 20 | .ascii " "\r |
| 21 | .ascii "JUE "\r |
| 22 | \r |
| 23 | * Check Version Number\r |
| 24 | move.b (0xa10000),%d0\r |
| 25 | andi.b #0x0f,%d0\r |
| 26 | beq WrongVersion\r |
| 27 | * Sega Security Code (SEGA)\r |
| 28 | move.l #0x53454741,(0xa14000)\r |
| 29 | WrongVersion:\r |
| 30 | moveq #0,%d0\r |
| 31 | movea.l %d0,%a7\r |
| 32 | move %a7,%usp\r |
| 33 | \r |
| 34 | tst.w 0xC00004\r |
| 35 | bra main\r |
| 36 | \r |
| 37 | * INT:\r |
| 38 | * rte\r |
| 39 | \r |
| 40 | HBL:\r |
| 41 | rte\r |
| 42 | \r |
| 43 | * VBL:\r |
| 44 | * addq.l #1,(vtimer).l\r |
| 45 | * rte\r |
| 46 | \r |