1
0
mirror of https://github.com/fachat/xa65.git synced 2024-06-17 04:29:48 +00:00
xa65/xa/tests/fordef/test3.asm
2014-08-20 13:02:57 +02:00

22 lines
340 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.s"