1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-22 21:29:50 +00:00

Working on deprecating lo/hi operators. Closes #667

This commit is contained in:
jespergravgaard 2021-06-12 21:11:26 +02:00
parent 60e97ee702
commit d5759bfb6b
3 changed files with 3 additions and 3 deletions

View File

@ -8,5 +8,5 @@ char* ptr = (char*)0x1000;
void main() {
WORD w = (WORD)&ptr;
w += 50;
SCREEN[0] = (char)w;
SCREEN[0] = BYTE0(w);
}

View File

@ -19,7 +19,7 @@ __start: {
rts
}
main: {
// SCREEN[0] = <w
// SCREEN[0] = BYTE0(w)
lda #<ptr+$32
sta SCREEN
// }

View File

@ -242,7 +242,7 @@ __start: {
}
// main
main: {
// SCREEN[0] = <w
// SCREEN[0] = BYTE0(w)
// [5] *SCREEN = <(word)&ptr+$32 -- _deref_pbuc1=vbuc2
lda #<ptr+$32
sta SCREEN