1
0
mirror of https://github.com/fachat/xa65.git synced 2024-11-15 23:05:30 +00:00
xa65/xa/tests/fordef/test3.asm
2011-12-16 23:04:51 +01:00

22 lines
342 B
NASM

.word $0400
*=$0400
/* define this if you want to crash and burn */
#ifdef FAIL
jmp `forward3
bne `forward3
lda (`forward1),y
lda (`forward3),y
#echo congrats, you have FAILED!
#endif
sta `forward3
/* this looks like it should fail, but won't because there is no ambiguity */
lda (forward1),y
jmp forward3
#include "test2.asm"