; MACROS.INC - Macro Library ; For Irvine: Assembly Language for the IBM-PC, ; 3rd Edition. ; This file should be included in any source program ; invoking the macros. The program must also link to ; irvine.lib. ; Macros in this file, with parameter names: ;mCondCall macro cond,procname ;mCompJmp macro dest,flag,source,label ;mDisplaystr macro string ;mDisplaystr_at macro row,col,string ;mExitdos macro ecode ;mGetyesno macro prompt ;mGotoXY macro row, column ;mJx&cond macro dest ;mLongloop macro dest ;mMove macro dest,source ;mMult16 macro dest,source ;mPrompt_Readint macro row,col,prompt,dest ;mPrompt_Readstring macro row,col,prompt,dest,max ;mPutchar macro char ;mRepeatchar macro char,count ;mShl macro dest,count ;mStartup macro ;mWriteint macro value, radix ;mWriteliteral macro text ;m&styp macro dest,count () ;------------------------------------------------ ; Simulations of 80286 instructions: ;mENTER ;mLEAVE ;mPUSHA ;mPOPA ;mSET&cond ;------------------------------------------------- extrn Crlf:proc, Readint:proc, Readstring:proc, \ Writeint:proc, Writestring:proc ; If flag is true, call the ; procedure . mCondCall macro cond,procname local L1,L2 j&cond short L1 jmp short L2 L1: call procname L2: exitm endm ; Compare to ; if is ; true, jump to