1
0
mirror of https://github.com/fachat/xa65.git synced 2024-11-15 23:05:30 +00:00
xa65/xa/tests/ppdefines/test7.a65

24 lines
587 B
Plaintext
Raw Permalink Normal View History

2023-10-25 09:42:14 +00:00
// due to a bug, the first definition was not behaving correct with the
// parameters during evaluation (which wasn't tested in test6*).
// With max3420e_enable2() first, the code would work, as it
// was not used, with the used max3420e_enable() first it would break.
#define max3420e_enable() nop
#define max3420e_enable2() nop
#define wrac(reg) \
max3420e_enable() :\
lda #(reg)
// just the definition of this macro hangs the xa indefinitely...
#define CLRBIT(reg, val) \
wrac(reg)
*=$c000
CLRBIT(1,2)