test/weirdpaste.asm
raw| 1 | ;Testname=preproc; Arguments=-E; Files=stdout stderr |
| 2 | ;Testname=bin; Arguments=-fbin -oweirdpaste.bin; Files=stdout stderr weirdpaste.bin |
| 3 | |
| 4 | %define foo xyzzy |
| 5 | %define bar 1e+10 |
| 6 | |
| 7 | %define xyzzy1e 15 |
| 8 | |
| 9 | %macro dx 2 |
| 10 | %assign xx %1%2 |
| 11 | dw xx |
| 12 | %endmacro |
| 13 | |
| 14 | dx foo, bar |
| 15 | |
| 16 | %macro df 2 |
| 17 | %assign xy __float32__(%1e+%2) |
| 18 | dd xy |
| 19 | dd %1e+%2 |
| 20 | %endmacro |
| 21 | |
| 22 | df 1, 36 |
| 23 | df 33, 20 |
| 24 | df 0, 2 |
| 25 | df 1.2, 5 |
| 26 | |
| 27 | |
| 28 | %define N 1e%++%+ 5 |
| 29 | dd N, 1e+5 |