From 9614b850904393cc744c3e020cb86e325e30ae80 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 13 Dec 2023 19:39:43 +0200 Subject: [PATCH] foo --- src/startup.s | 7 +++++-- src/z80/main.asm | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/startup.s b/src/startup.s index 2b5b7a7..785a0b5 100644 --- a/src/startup.s +++ b/src/startup.s @@ -7,9 +7,12 @@ start: jsr disable_intr + move.b 0xa10001, %d0 + and.b #0xf, %d0 + beq.s skip_tmss | write SEGA to 0xa14000 to convince the TMSS to run us - move.l 0x100, %d0 - move.l %d0, 0xa14000 + move.l #0x53454741, 0xa14000 +skip_tmss: | copy .data section from ROM to RAM move.l #_data_lma, %a0 diff --git a/src/z80/main.asm b/src/z80/main.asm index 3727e74..0caba8a 100644 --- a/src/z80/main.asm +++ b/src/z80/main.asm @@ -18,7 +18,7 @@ main: di ld (iy+1), $f0 ; key on ei mainloop: - halt ; wait for interrupt + ;halt ; wait for interrupt ld a, (frame) ld b, a ; b: cur frame ld a, (prev) ; a: prev frame -- 1.7.10.4