binutils-gdb/gas/testsuite/gasp/sfunc.asm

27 lines
312 B
NASM
Raw Normal View History

1994-02-01 00:53:03 +08:00
.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