1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-29 03:56:15 +00:00
kickc/src/test/ref/var-forward-problem.asm

14 lines
244 B
NASM
Raw Normal View History

2019-02-17 23:12:29 +00:00
// Illustrates the problem with variable forward references not working
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.const b = 'a'
.label screen = $400
main: {
2020-02-23 08:44:36 +00:00
// *screen = b
lda #b
sta screen
2020-02-23 08:44:36 +00:00
// }
rts
}