1
0
mirror of https://github.com/fachat/xa65.git synced 2024-07-06 15:28:59 +00:00
xa65/xa/tests/ppdefines/test2.a65

34 lines
475 B
Plaintext

/*
* tests the definition of macro parameters with spaces
* between the name and the brackers / comma
*/
#define wreg(reg, val) \
lda #(reg) | 0x02 :\
lda #(val)
#define wreg2( reg , val , val2 ) \
lda #(reg) | 0x02 :\
lda #(val) :\
ldx #(val2)
#define wreg3(reg, val, val2) \
.byt reg, val, val2
#define P1 1
#define P2 2
#define P3 3
*=$c000
wreg(P1, P2)
wreg2(P1, P2, P3)
wreg3( P1 , P2 , P3 )