Borland® Turbo Assembler® for OS/2® Version 4.1 COPYRIGHT © 1988, 1994 by Borland International
Total Page:16
File Type:pdf, Size:1020Kb
·Borland ® TUrbo Assembler forOSfl® Quick Reference Guide Borland® Turbo Assembler® for OS/2® Version 4.1 COPYRIGHT © 1988, 1994 by Borland International. All rights reserved. All Borland product names are trademarks or registered trademarks of Borland International, Inc. Other brand and product names are trademarks or registered trademarks of their respective holders. The material in Part 3 and Part 4 is reprinted with permission of Intel Corporation, Copyright/Intel Corporation 1987, 1993. Borland International, Inc. 100 Borland Way, Scotts Valley, CA 95066-3249 PRINTED IN THE UNITED STATES OF AMERICA 1EOR0294 9495969798-9 8 7 6 5 4 3 2 1 H1 TAB L E o F CONTENTS CODEPTR ................... 8 PART 1 DATAPTR ................... 8 Predefined symbols 1 DUP......................... 8 $ ............................ 2 DWORD ..................... 9 @32Bit ....................... 2 DWORDPTR ................ 9 @code ....................... 2 EQ .......................... 9 @CodeSize . .. 2 FAR ......................... 9 @CPU ....................... 2 FARPTR .................... 9 @curseg ...................... 2 FWORD ..................... 9 @data ............... , ........ 2 FWORDPTR ................. 9 @DataSize. .. 2 GE .......................... 9 ??date .............. , ........ 2 GT .......................... 9 @fardata ............ , ........ 2 HIGH ....................... 9 @fardata? .................... 2 HIGH ...................... 10 @FileName. .. 2 LARGE ..................... 10 ??filename . .. 3 LE ......................... 10 @Interface .................... 3 LENGTH ................... 10 @Model ...................... 3 LOW ....................... 10 @Object ...................... 3 LOW ....................... 10 @Stack ....................... 3 LT ......................... 10 @Startup ..................... 3 MASK ...................... 10 @Table_<objectname> . .. 3 MOD ....................... 10 @TableAddr_<objectname> ..... 3 NE ......................... 11 ??time .............. , ........ 3 NEAR ...................... 11 ??version. .. 3 NEARPTR .................. 11 @WordSize. .. 3 NOT ....................... 11 OFFSET .................... 11 PART 2 OR ......................... 11 Operators 5 PROC ...................... 11 PROCPTR .................. 11 Ideal mode operator PTR ........................ 11 precedence .................. 6 PWORD .................... 12 MASM mode operator PWORD PTR ................ 12 precedence. .. 6 QWORD .................... 12 Operators ................... 7 QWORD PTR .............. , 12 ( ) ........................... 7 SEG ........................ 12 * ................... , ........ 7 SHL ........................ 12 + (binary) .................... 7 SHORT ..................... 12 + (unary) ............ , ........ 7 SHR ........................ 12 - (binary). .. 7 SIZE ........................ 12 - (unary) ..................... 7 SMALL ..................... 13 •............................ 7 SYMTYPE .................. 13 / ............................ 7 TBYTE ...................... 13 :............................. 8 TBYTE PTR ................ , 13 ? ................... , ........ 8 THIS ....................... 13 [ ] ........................... 8 .TYPE ...................... 13 AND ........................ 8 TYPE ....................... 13 BYTE ........................ 8 TYPE ....................... 13 BYTE PTR. ................... 8 UNKNOWN · ............... 13 WIDTH ..................... 14 %CREF ..................... 20 WORD ...................... 14 %CREFALL ................. 20 WORDPTR ................. 14 %CREFREF .................. 20 XOR ........................ 14 %CREFUREF ................ 20 The special macro operators .. 14 %CTLS ...................... 20 & ........................... 14 .DATA ...................... 20 <> ......................... 14 DATASEG .................. 20 ! ............................ 14 .DATA? .................... 20 % ••••••••••••••••••••••••••• 14 DB ......................... 21 ;; ........................... 14 DD ......................... 21 %DEPTH .................... 21 DF .......................... 21 PART 3 DISPLAY .................... 21 15 Directives DOSSEG .................... 21 .186 ......................... 16 DP ......................... 22 .286 ......................... 16 DQ ......................... 22 .286C ....................... 16 DT ......................... 22 .286P ........................ 16 DW ......................... 22 .287 ......................... 16 ELSE ....................... 22 .386 ......................... 16 ELSEIF ...................... 23 .386C ....................... 16 EMUL ...................... 23 .386P ........................ 16 END ........................ 23 .387 ......................... 16 ENDIF ...................... 23 .486 ......................... 16 ENDM ...................... 23 .486C ....................... 16 ENDP ....................... 23 .486P ........................ 16 ENDS ....................... 24 .487 ......................... 17 ENUM ...................... 24 .586 ......................... 17 EQU ........................ 24 .586C ....................... 17 .ERR ........................ 24 .586P ........................ 17 ERR ........................ 24 .587 ......................... 17 .ERRl ....................... 24 .8086 ........................ 17 .ERR2 ....................... 24 .8087 ........................ 17 .ERRB ....................... 24 : ............................ 17 .ERRDEF .................... 25 = ........................... 17 .ERRDIF .................... 25 ALIGN ...................... 17 .ERRDIFI .................... 25 .ALPHA ..................... 17 .ERRE ....................... 25 ALIAS ...................... 18 .ER1{IT)N .................... 25 ARG ........................ 18 .ER1{IT)NI ................... 25 ASSUME .................... 18 ERRIF ....................... 25 %BIN ....................... 18 ERRIFl ...................... 26 CALL ....................... 18 ERRIF2 ...................... 26 CATSTR. .................... 18 ERRIFB ..................... 26 .CODE ...................... 19 ERRIFDEF ................... 26 CODESEG ................... 19 ERRIFDIF ................... 26 COMM ...................... 19 ERRIFDIFI. .................. 26 COMMENT ................. 19 ERRIFE ..................... 26 %COND .................... 19 ERRIFIDN ................... 27 .CONST ..................... 19 ERRIFIDNI .................. 27 CONST ..................... 19 ERRIFNB .................... 27 .CREF ....................... 20 ERRIFNDEF ................. 27 ii .ERRNB ..................... 27 MASM ..................... 36 .ERRNDEF .................. 27 MASM51 ................... 36 .ERRNZ ..................... 27 MODEL .................... 36 EVEN ...................... 27 .MODEL .................... 37 EVENDATA ................ 28 MULTERRS. .. .. .. .. .. .. .... 37 .EXIT ....................... 28 NAME ..................... 37 EXITCODE. .. 28 %NEWPAGE. ............... 37 EXITM ...................... 28 %NOCONDS. .. 37 EXTRN ..................... 28 %NOCREF .................. 37 .FARDATA ................. 28 %NOCTLS .................. 37 FARDATA .................. 28 NOEMUL ................... 37 .FARDATA? ................ 29 %NOINCL .................. 38 FASTIMUL. .. 29 NOJUMPS .................. 38 FLIPFLAG . .. .. .. .. .. .. .. ... 29 %NOLIST ................... 38 GETFIELD . .. 29 NOLOCALS .. .. .. .. .. .. .... 38 GLOBAL. ................... 29 %NOMACS ................. 38 GOTO ...................... 29 NOMASM51 .. .. .. .. .. .. .... 38 GROUP ..................... 30 NOMULTERRS. .. 38 IDEAL. ..................... 30 NOSMART ................. 38 IF .......................... 30 %NOSYMS ................. 38 IF1 ......................... 30 %NOTRUNC ................ 38 IF2 ......................... 30 NOWARN .................. 38 IFB ......................... 31 ORG ....................... 39 IFDEF ...................... 31 %OUT ...................... 39 IFDIF ....................... 31 P186 ........................ 39 IFDIFI ...................... 31 P286 ........................ 39 IFE ......................... 32 P286N ...................... 39 IFIDN ...................... 32 P286P ...................... 39 IFIDNI. ..................... 32 P287 ........................ 39 IFNB ....................... 32 P386 ........................ 39 IFNDEF ..................... 33 P386N ...................... 39 %INCL ..................... 33 P386P ...................... 39 INCLUDE ................... 33 P387 ........................ 39 INCLUDELIB ............... 33 P486 ........................ 40 INSTR ...................... 33 P486N ...................... 40 IRP ......................... 33 P487 ........................ 40 IRPC ....................... 34 P586 ........................ 40 JMP ........................ 34 P586N ...................... 40 JUMPS ...................... 34 P587 ........................ 40 LABEL ..................... 34 P8086 ....................... 40 .LALL ...................... 34 P8087 ....................... 40 LARGESTACK .............. 34 %P AGESIZE . .. 40 .LFCOND ................... 34 %PCNT ..................... 41 %LINUM ................... 35 PN087 ..................... 41 %LIST ...................... 35 %POPLCTL . .. 41 .LIST ....................... 35 POPSTATE ................. 41 LOCAL ..................... 35 PROC ...................... 41 LOCALS .................... 36 PROCDESC ................. 42 MACRO ...................