home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1998 January (DVD)
/
VPR980100.ISO
/
OLS
/
DOS
/
MILD7130
/
MILD7130.LZH
/
SOURCE.LZH
/
MACROS.INC
next >
Wrap
Text File
|
1993-11-11
|
872b
|
63 lines
;==============
; Define Macro
;============== by Altair☆
irp op,<push,pop>
op&s macro regs
irp reg,regs
ifidni <reg>,<f>
op&f
else
ifidni <reg>,<a>
op&a
else
op reg
endif
endif
endm
endm
endm
if_ macro x,cond,y,where
cmp x,y
j&cond where
endm
irp reg,<ax,bx,dx,si,di,bp,al,bl,cl,dl,dh,ah,bh,ch,dh>
j®&z macro where
or reg,reg
jz where
endm
endm
irp reg,<ax,bx,cx,dx,si,di,bp,al,bl,cl,dl,dh,ah,bh,ch,dh>
j®&nz macro where
or reg,reg
jnz where
endm
endm
testif macro x,y,cond,where
test x,y
j&cond where
endm
movp macro targ,source
push source
pop targ
endm
mov2 macro targ,reg,source
mov reg,source
mov targ,reg
endm
movd macro mem32,sreg,reg16
mov word ptr mem32,reg16
mov word ptr mem32+2,sreg
endm
callif macro proc,cond,where
call proc
j&cond where
endm