1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-08-08 13:25:12 +00:00
Files
kickc/src/test/kc/helloworld2.kc

15 lines
264 B
Plaintext

byte* screen = $400;
void main() {
byte* hello = "hello world!";
print2(screen, hello);
print2(screen+80, hello);
}
void print2(byte* at, byte* msg) {
byte j=0;
for(byte i=0; msg[i]!='@'; i++) {
at[j] = msg[i];
j += 2;
}
}