ROM: Change mapper type from KonamiSCC to ASCII8.

ASCII8 supports larger sizes and does not have SCC registers in bank 3FH.
4 files changed, 17 insertions(+), 12 deletions(-)

M Makefile
M README.md
M src/ROM.asm
M src/ROMMapper.asm
M Makefile +4 -4
@@ 14,13 14,13 @@ copy: all
 	diskutil umount $(COPY_TARGET)
 
 run: all
-	openmsx -cart bin/tiletile.rom -romtype KonamiSCC -machine Panasonic_FS-A1GT -script openmsx.tcl
+	openmsx -cart bin/tiletile.rom -romtype ASCII8 -machine Panasonic_FS-A1GT -script openmsx.tcl
 
 run2: all
-	openmsx -cart bin/tiletile.rom -romtype KonamiSCC -machine Sanyo_PHC-70FD -script openmsx.tcl
+	openmsx -cart bin/tiletile.rom -romtype ASCII8 -machine Sanyo_PHC-70FD -script openmsx.tcl
 
 run3: all
-	openmsx -cart bin/tiletile.rom -romtype KonamiSCC -machine Sony_HB-F1XV -script openmsx.tcl
+	openmsx -cart bin/tiletile.rom -romtype ASCII8 -machine Sony_HB-F1XV -script openmsx.tcl
 
 run4: all
-	openmsx -cart bin/tiletile.rom -romtype KonamiSCC -machine Al_Alamiah_AX370 -script openmsx.tcl
+	openmsx -cart bin/tiletile.rom -romtype ASCII8 -machine Al_Alamiah_AX370 -script openmsx.tcl

          
M README.md +1 -1
@@ 21,7 21,7 @@ System requirements
   * MSX2+, MSX turboR
   * 64K main RAM
   * 128K video RAM
-  * 128K Konami 4/5 ROM
+  * 128K ASCII8 ROM
 
 
 Development information

          
M src/ROM.asm +1 -1
@@ 77,6 77,6 @@ RAM_RESIDENT: equ RAM
 	SECTION RAM
 
 ROM_mapper:
-	ROMMapper
+	ROMMapper ROMMapper_ASCII8
 
 	ENDS

          
M src/ROMMapper.asm +11 -6
@@ 1,18 1,23 @@ 
 ;
-; Konami SCC ROM mapper
+; 8K ROM mapper
 ;
 ROMMapper_BANK_SIZE: equ 2000H
 ROMMapper_BANK_SIZE_LOG2: equ 13
+ROMMapper_ASCII8: equ 0
+ROMMapper_KONAMI: equ 1
+ROMMapper_KONAMISCC: equ 2
 
-ROMMapper: MACRO
+ROMMapper: MACRO ?type
+	BASE: equ ?type = ROMMapper_ASCII8 ? 6000H : ?type = ROMMapper_KONAMI ? 4000H : 5000H
+	OFFSET: equ ?type = ROMMapper_ASCII8 ? 800H : 2000H
 	page4000:
-		ROMPage 4000H, 5000H, 0
+		ROMPage 4000H, BASE + 0 * OFFSET, 0
 	page6000:
-		ROMPage 6000H, 7000H, 1
+		ROMPage 6000H, BASE + 1 * OFFSET, 1
 	page8000:
-		ROMPage 8000H, 9000H, 2
+		ROMPage 8000H, BASE + 2 * OFFSET, 2
 	pageA000:
-		ROMPage 0A000H, 0B000H, 3
+		ROMPage 0A000H, BASE + 3 * OFFSET, 3
 	ENDM
 
 ROMPage: MACRO ?base, ?bankSelect, ?initialValue = 0