From dbd82421669f252af6ac1e032d3a9c7fab274fa0 Mon Sep 17 00:00:00 2001 From: Victor Luchits Date: Wed, 5 May 2021 12:34:44 +0300 Subject: [PATCH] A cleaner vbi setup --- crt0.s | 2 +- marsnew.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crt0.s b/crt0.s index 146edc5863..4dde1cbcbf 100644 --- a/crt0.s +++ b/crt0.s @@ -369,7 +369,7 @@ master_start: mov #0x80,r0 mov.l _master_adapter,r1 mov.b r0,@r1 /* set FM */ - mov #0x00,r0 + mov #0x08,r0 mov.b r0,@(1,r1) /* set int enables */ mov #0x20,r0 ldc r0,sr /* allow ints */ diff --git a/marsnew.c b/marsnew.c index ea1519f43b..c1fee4cd5c 100644 --- a/marsnew.c +++ b/marsnew.c @@ -83,7 +83,6 @@ void Mars_Init(void) volatile unsigned short *palette; while ((MARS_SYS_INTMSK & MARS_SH2_ACCESS_VDP) == 0); - MARS_SYS_INTMSK |= 1 << 3; // enable vblank interrupts MARS_VDP_DISPMODE = MARS_224_LINES | MARS_VDP_MODE_256;