In turbo assembler i have a macro
subs macro x,y
mov ax,x
sub ax,y
endm
how can I give to y a default value, equal to 1, so I can write
subs bx
and ax becomes equal to bx - 1?
subs MACRO x,y
IFB <y>
mov ax,x
sub ax,1
ELSE
mov ax,x
sub ax,y
ENDIF
ENDM
You need a reference: http://www.bitsavers.org/pdf/borland/turbo_assembler/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With