added pragma support to build_segment tool

This commit is contained in:
FeralChild64 committed 2020-01-15 17:54:29 +01:00
1 parent 41c94e0577
commit 73f05a13c8
5 files changed
+131 -24

No files matched your search

+6 -3
View File
@@ -1,18 +1,21 @@
// #LAYOUT# M65 KERNAL_0 #TAKE-FLOAT
// #LAYOUT# M65 KERNAL_1 #TAKE
// #LAYOUT# * * #IGNORE
//
// Definitions for communication with Mega65 segment KERNAL_1
//
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
#if SEGMENT_KERNAL_0
// Labels for jumps
.label KERNAL_1__TESTROUTINE = $4000
.label KERNAL_1__TESTROUTINE = $4000
#elif (ROM_LAYOUT_M65 && SEGMENT_KERNAL_1)
#elif
// Jumptable (OpenROMs private!)
+7 -5
View File
@@ -1,9 +1,14 @@
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
// #LAYOUT# M65 KERNAL_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// ROM mapping routines for Mega65
//
// Available memory maps:
// - NORMAL - nothing mapped in
// - KERNAL_1 - for calling KERNAL_1 segment code
map_NORMAL:
@@ -43,9 +48,6 @@ map_KERNAL_1:
tay
taz
ldx #$42 // XXX map 8KB from 0x20000 to 0x4000 - somehow does not seem to work
ldx #$42 // 0x4000 <- map 8KB from 0x20000
bne map_end
#endif // ROM layout