]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
ST support updates.
authorToni Wilen <twilen@winuae.net>
Sat, 28 Sep 2019 09:50:53 +0000 (12:50 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 28 Sep 2019 09:50:53 +0000 (12:50 +0300)
cputest/atari.S
cputest/main.c
cputest/makefile.st

index e2871f0197a18d785899c70b404260a0dd9f4055..f43257a2a35b4b46fc7ed8a9a42f2b9e3d4a752c 100644 (file)
@@ -44,7 +44,7 @@ _tosuper:
 
        move.w  0xff8240,save_color0
 
-       move.w  #0x2500,sr              | disable HBL/VBL
+       move.w  #0x2700,sr              | disable HBL/VBL
        rts
 
        | back to user mode, enable MFP interrupts
index e4c80548a2961d6f3674894bcef7f517e18c51a9..a5007050149cc56eeab133f2db2ed3f4bb82e0b5 100644 (file)
@@ -1624,6 +1624,9 @@ static void freestuff(void)
 {
        if (test_memory && test_memory_addr)
                free_absolute(test_memory_addr, test_memory_size);
+#ifdef WAITEXIT
+       getch();
+#endif
 }
 
 
@@ -1841,9 +1844,6 @@ int main(int argc, char *argv[])
 
 #define _stricmp strcasecmp
 
-       if (strlen(argv[1]) >= sizeof(opcode) - 1)
-               return 0;
-
        strcpy(path, "data/");
 
        low_memory = (uae_u8 *)0;
@@ -1878,6 +1878,9 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strlen(argv[1]) >= sizeof(opcode) - 1)
+               return 0;
+
        strcpy(opcode, argv[1]);
 
        check_undefined_sr = 1;
index 141aa0f15daa0adaa072814169ff6209f33f4fa5..3cc45d83bc8a0024bf4f1c5f8869106155c0f32d 100644 (file)
@@ -5,7 +5,7 @@ NOWTIME := "\"$(shell date "+%T")\""
 CC=/opt/m68k-atari/bin/m68k-atari-mint-gcc
 AS=/opt/m68k-atari/bin/m68k-atari-mint-as
 
-CFLAGS = -O2 -m68000 -fomit-frame-pointer -msoft-float -DREVDATE=$(NOWDATE) -DREVTIME=$(NOWTIME) -DM68K
+CFLAGS = -O2 -m68000 -fomit-frame-pointer -msoft-float -DREVDATE=$(NOWDATE) -DREVTIME=$(NOWTIME) -DM68K -DWAITEXIT
 LINK_CFLAGS = -lm -s
 
 OBJS = main.o asm040.o atari.o \
@@ -13,7 +13,7 @@ OBJS = main.o asm040.o atari.o \
        opcode_handler_mmu.o opcodes_cpu.o opcodes_fpu.o opcodes_mmu.o util.o
 
 all: $(OBJS)
-       $(CC) $(LINK_CFLAGS) -o cputest $^
+       $(CC) $(LINK_CFLAGS) -o cputest.ttp $^
 
 main.o: main.c
        $(CC) $(CFLAGS) -I. -c -o $@ main.c