X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=megadrive.git;a=blobdiff_plain;f=hexed%2Fhexed.s;h=418ca5c4069ab4a9a387c5e8b17c85c122bc49fb;hp=b7d918624131cbfd1d52bb60b949451c460edf81;hb=8682b7ce22bd03b72af1ccaf65a71046e5303f73;hpb=6f93f411b27296f8a96761061312cd70a15c8884 diff --git a/hexed/hexed.s b/hexed/hexed.s index b7d9186..418ca5c 100644 --- a/hexed/hexed.s +++ b/hexed/hexed.s @@ -262,8 +262,18 @@ txt_exc: main: /* make sure io port 2 is doing inputs */ move.b #0,(0xa1000b).l - /* mask irqs during init */ + /* make sure irqs are masked */ move.w #0x2700,sr + /* take care of TMSS */ + move.b (0xa10000).l,d0 + andi.b #0x0f,d0 + beq no_tmss + move.l #0x53454741,(0xa14000).l + /* want cart, not OS rom if cart pops in */ + move.w #1,(0xa14100).l + /* touch VDP after TMSS setup? */ + tst.w (0xc00004).l +no_tmss: .if COPY_TO_EXP /* copy to expansion device if magic number is set */