mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-22 06:29:23 +00:00
Working on deprecating lo/hi operators. Closes #667
This commit is contained in:
parent
60e97ee702
commit
d5759bfb6b
@ -8,5 +8,5 @@ char* ptr = (char*)0x1000;
|
||||
void main() {
|
||||
WORD w = (WORD)&ptr;
|
||||
w += 50;
|
||||
SCREEN[0] = (char)w;
|
||||
SCREEN[0] = BYTE0(w);
|
||||
}
|
@ -19,7 +19,7 @@ __start: {
|
||||
rts
|
||||
}
|
||||
main: {
|
||||
// SCREEN[0] = <w
|
||||
// SCREEN[0] = BYTE0(w)
|
||||
lda #<ptr+$32
|
||||
sta SCREEN
|
||||
// }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user