1
0
mirror of https://github.com/fachat/xa65.git synced 2024-07-06 15:28:59 +00:00
xa65/xa/tests/ppdefines/test7.a65
2012-08-17 18:08:00 +02:00

24 lines
587 B
Plaintext

// 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)