1
0
mirror of https://github.com/fachat/xa65.git synced 2024-06-26 08:29:29 +00:00
xa65/xa/tests/fordef/test3.asm

22 lines
340 B
NASM
Raw Normal View History

2011-12-16 22:04:51 +00:00
.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
2014-08-20 11:02:57 +00:00
#include "test2.s"