Kernal size optimizations

This commit is contained in:
FeralChild64 committed 2020-01-28 19:45:02 +01:00
1 parent 1b49724c50
commit dff590c979
7 files changed
+161 -72

No files matched your search

+12 -1
View File
@@ -1,5 +1,6 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * KERNAL_0 #TAKE
// #LAYOUT# M65 KERNAL_0 #TAKE
// #LAYOUT# M65 KERNAL_1 #TAKE-FLOAT
// #LAYOUT# * * #IGNORE
//
@@ -11,6 +12,14 @@
setup_vicii:
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
jsr map_KERNAL_1
jsr_ind VK1__setup_vicii
jmp map_NORMAL
#else
// Clear everything - turn off sprites (observed hanging around after
// running programs and resetting), etc.
@@ -67,3 +76,5 @@ setup_vicii:
// Setup default I/O devices
jmp clrchn_reset
#endif // ROM layout
+13 -1
View File
@@ -1,5 +1,6 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * KERNAL_0 #TAKE
// #LAYOUT# M65 KERNAL_0 #TAKE
// #LAYOUT# M65 KERNAL_1 #TAKE-FLOAT
// #LAYOUT# * * #IGNORE
//
@@ -14,6 +15,14 @@
IOINIT:
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
jsr map_KERNAL_1
jsr_ind VK1__IOINIT
jmp map_NORMAL
#else
//
// First initialize the CPU port, to make sure we have correct memory map
//
@@ -146,3 +155,6 @@ IOINIT:
rts
#endif
#endif // ROM layout