1
0
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:
Jesper Gravgaard 2020-02-13 18:26:52 +01:00
parent f92e750b61
commit a5d14105d8

View File

@ -1,13 +1,15 @@
// Test rewriting of constant comparisons
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 = " < <= == >= >";
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++) {
screen +=40;