megaed-stop-md - standalone test
[megadrive.git] / megaed-stop-md / sega_gcc.s
1     dc.l     0, RST,   exc__, exc__, exc__, exc__, exc__, exc__\r
2     dc.l exc__, exc__, exc__, exc__, exc__, exc__, exc__, exc__\r
3     dc.l exc__, exc__, exc__, exc__, exc__, exc__, exc__, exc__\r
4     dc.l exc__, exc__, exc__, exc__, HBL,   exc__, VBL,   exc__\r
5     dc.l exc__, exc__, exc__, exc__, exc__, exc__, exc__, exc__\r
6     dc.l exc__, exc__, exc__, exc__, exc__, exc__, exc__, exc__\r
7     dc.l exc__, exc__, exc__, exc__, exc__, exc__, exc__, exc__\r
8     dc.l exc__, exc__, exc__, exc__, exc__, exc__, exc__, exc__\r
9 \r
10     .ascii "SEGA                            "\r
11     .ascii "MEGA-ED SDRAM vs STOP                           "\r
12     .ascii "MEGA-ED SDRAM vs STOP                           "\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 RST:\r
24     move.w #0x2700, %sr\r
25 \r
26     move.b (0xA10001), %d0\r
27     andi.b #0x0F, %d0\r
28     beq.s 0f\r
29     move.l  #0x53454741, (0xA14000) /* 'SEGA' */\r
30 0:\r
31     moveq.l #0, %d0\r
32     movea.l %d0, %a7\r
33     move.l  %a7, %usp\r
34     bra     main\r
35 \r
36 HBL:\r
37 VBL:\r
38 exc__:\r
39     rte\r
40 \r
41 # vim:filetype=asmM68k:ts=4:sw=4:expandtab\r