Skip to content

Commit 24e6574

Browse files
Improve speed handling in CX16
1 parent 78f51bb commit 24e6574

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/cross_lib/display/init_graphics/cc65/cx16/cx16_init_graphics.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,14 @@ void SET_UDG_IMAGES(void)
5555
void _XL_INIT_GRAPHICS(void)
5656
{
5757
videomode(VIDEOMODE_20x30);
58+
printf("%c%c%c%c",0x90,0x01,0x05,147);
59+
// printf("%c",0x09);
60+
// printf("%c",0x01);
61+
// printf("%c",0x01);
62+
63+
// printf("%c",0x10);
64+
// printf("%c",0x01);
65+
cputc(0x10);
66+
cputc(0x01);
5867
SET_UDG_IMAGES();
5968
}

src/cross_lib/sleep/sleep_macros.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@
115115
foo=42+i;
116116
}
117117
}
118+
#elif defined(__CX16__)
119+
void _XL_SLOW_DOWN(uint16_t t)
120+
{
121+
uint16_t i;
122+
uint8_t j;
123+
124+
for(i=0;i<(t);++i)
125+
{
126+
for(j=0;j<9;++j)
127+
{
128+
}
129+
}
130+
}
118131
#else
119132
void _XL_SLOW_DOWN(uint16_t t)
120133
{

src/makefiles.common/auxiliary/Makefile_default_values

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _C16_SLOWDOWN?=0
2323
_C64_SLOWDOWN?=0
2424
_CBM610_SLOWDOWN?=0
2525
_CBM510_SLOWDOWN?=0
26-
_CX16_SLOWDOWN?=500
26+
_CX16_SLOWDOWN?=200
2727
_CREATIVISION_SLOWDOWN?=0
2828
_GAMATE_SLOWDOWN?=0
2929
_ORIC_SLOWDOWN?=0

0 commit comments

Comments
 (0)