mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-09-29 03:56:15 +00:00
14 lines
244 B
NASM
14 lines
244 B
NASM
// Illustrates the problem with variable forward references not working
|
|
.pc = $801 "Basic"
|
|
:BasicUpstart(main)
|
|
.pc = $80d "Program"
|
|
.const b = 'a'
|
|
.label screen = $400
|
|
main: {
|
|
// *screen = b
|
|
lda #b
|
|
sta screen
|
|
// }
|
|
rts
|
|
}
|