msx2: switch to R800 cpu on boot if available
authorgeijoenr <enric.geijo@gmail.com>
Sat, 21 Feb 2015 19:19:03 +0000 (19:19 +0000)
committergeijoenr <enric.geijo@gmail.com>
Sat, 21 Feb 2015 19:24:18 +0000 (19:24 +0000)
We want to boot fast on TurboR.

Kernel/platform-msx2/bootrom.s
Kernel/platform-msx2/msx2.def

index f171737..0a9a10c 100644 (file)
@@ -23,6 +23,14 @@ bootstrap:
                di
                ld sp,#0xf340       ; temporary stack
 
+               ;
+               ; enable R800 CPU if available
+               ;
+               ld a,(BIOS_CHGCPU)
+               cp  #0xC3
+               ld  a,#0x81                 ; run only in rom mode, as we do not use BIOS better save 4 ram pages
+               call z,#BIOS_CHGCPU
+
                ; FIXME: init vdp using bios so that font is in place after vdpinit
                ld a,#0x50
                ld (0xf3ae),a
index ae36d01..11f3089 100644 (file)
@@ -40,4 +40,8 @@ BIOS_VDP_IOPORT                   .equ 0x0006
 OPENMSX_DEBUG1             .equ 0x2E
 OPENMSX_DEBUG2             .equ 0x2F
 
+;
+; TurboR CPU mode select
+;
+BIOS_CHGCPU                .equ 0x180