c128: added c128.fast() and c128.slow() to enable/disable the CPU's 2 MHz mode.

Also added c128.is80(), set80(), set40() to check and set 40/80 column screen mode
This commit is contained in:
Irmen de Jong
2025-12-30 23:39:43 +01:00
parent c87e920c61
commit 3a74931a61
7 changed files with 117 additions and 36 deletions
@@ -549,6 +549,8 @@ c64 {
}
c128 {
&ubyte MMUCR
&ubyte SCREEN_MODE
&ubyte VM1
&ubyte VM2
&ubyte VM3
@@ -576,7 +578,12 @@ c128 {
disable_basic () clobbers (A)
disable_fkey_macros ()
enable_fkey_macros ()
fast ()
getbanks () -> ubyte @A
is80 () -> bool
set40 ()
set80 ()
slow ()
x16jsrfar ()
}
@@ -689,6 +689,11 @@ c64 {
x16jsrfar ()
}
c128 {
fast ()
slow ()
}
sys {
const byte MAX_BYTE
const float MAX_FLOAT