hexed: minor cleanup
[megadrive.git] / hexed / sega_gcc.s
CommitLineData
4db6e09f 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
27d5cc88 11 .ascii "hexed (c) notaz, 2009 "\r
12 .ascii "HEXED (C) NOTAZ, 2009 "\r
4db6e09f 13 .ascii "GM 00000000-00"\r
27d5cc88 14 .byte 0x00,0x00\r
4db6e09f 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
4fce116e 22\r
4fce116e 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
4db6e09f 29WrongVersion:\r
4fce116e 30 moveq #0,%d0\r
31 movea.l %d0,%a7\r
32 move %a7,%usp\r
01b3c933 33\r
4fce116e 34 tst.w 0xC00004\r
318e20ff 35 bra main\r
4db6e09f 36\r
4fce116e 37* INT:\r
38* rte\r
4db6e09f 39\r
40HBL:\r
4db6e09f 41 rte\r
42\r
1286a1ba 43* VBL:\r
44* addq.l #1,(vtimer).l\r
45* rte\r
4db6e09f 46\r