diff options
Diffstat (limited to 'gas/testsuite/gasp/sfunc.asm')
-rw-r--r-- | gas/testsuite/gasp/sfunc.asm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gas/testsuite/gasp/sfunc.asm b/gas/testsuite/gasp/sfunc.asm new file mode 100644 index 0000000..b59949a --- /dev/null +++ b/gas/testsuite/gasp/sfunc.asm @@ -0,0 +1,26 @@ + + .MACRO RESERVE_STR P1=0 P2 + .SDATA .SUBSTR("ABCDEFG",\P1,\P2) + .ENDM + + RESERVE_STR 2,2 + RESERVE_STR ,3 + + + .MACRO FIND_STR P1 + .DATA.W .INSTR("ABCDEFG","\P1", 0) + .ENDM + + FIND_STR CDE + FIND_STR H + + .MACRO RESERVE_LENGTH P1 + .ALIGN 4 + .SRES .LEN("\P1") + .ENDM + + RESERVE_LENGTH ABCDEF + RESERVE_LENGTH ABC + + .END + |