mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-23 08:32:39 +00:00
Fixed const in test.
This commit is contained in:
parent
f92e750b61
commit
a5d14105d8
@ -1,13 +1,15 @@
|
|||||||
// Test rewriting of constant comparisons
|
// Test rewriting of constant comparisons
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
byte* screen = $0400;
|
const byte* SCREEN = $0400;
|
||||||
|
|
||||||
for(byte* sc : screen..screen+1000) *sc=' ';
|
for(byte* sc : SCREEN..SCREEN+1000) *sc=' ';
|
||||||
|
|
||||||
byte[] header = " < <= == >= >";
|
byte[] header = " < <= == >= >";
|
||||||
for( byte i=0; header[i]!=0; i++)
|
for( byte i=0; header[i]!=0; i++)
|
||||||
screen[i] = header[i];
|
SCREEN[i] = header[i];
|
||||||
|
|
||||||
|
byte* screen = SCREEN;
|
||||||
|
|
||||||
for(byte i=0;i<=9;i++) {
|
for(byte i=0;i<=9;i++) {
|
||||||
screen +=40;
|
screen +=40;
|
||||||
|
Loading…
Reference in New Issue
Block a user