Is there some way to write this more simply?
for arg,<baddr>
quote SUBSTR <arg>,1,1
isquote=0
IFIDN quote , <">
isquote=1
elseifidn quote,<'>
isquote=1
endif
if isquote
.data
tmpoffset = $
db arg,0
.code
mov esi,tmpoffset
It works, but it's kinda ugly.
I have tried every combination of
if ( (quote eq <"> ) or (quote eq <'>) )
that I could think of with no luck.
hi,
come this closer to your taste:
IF (@InStr(1,<&arg>,<!">) EQ 1) OR (@InStr(1,<&arg>,<!'>) EQ 1)
.data
tmpoffset = $
db arg,0
.code
mov esi,tmpoffset
ELSE
;...
ENDIF
regards, qWord
Thanks, that works. Anyone else?
And with your hint, I got a little furthur-
for arg,<baddr>
quote SUBSTR <arg>,1,1
IF (@InStr(1,<!"!'>,<%quote>))
.data
tmpoffset = $
db arg,0
.code
mov esi,tmpoffset
How about:
IF (@InStr(1,<!"!'>,@SubStr(<arg>,1,1)))
.data
tmpoffset = $
db arg,0
.code
mov esi,tmpoffset
ENDIF