; General macros
;
; (C)1988 By Ami Bar-Yadin.
; AMUS ID: AMI/AM
;
; All commercial rights reserved, etc.
;
; If you want to include STAMP with a commercial package,
; go right ahead so long as you include the UNCHANGED source (.m68) with it.
;
; No warranties and/or guarranties of any kind, etc.
;
; Not responsible for damages resulting from the use of this program, etc.
;
; My employer (United Fashions) has nothing to do with this program and
; should not be blamed for it.
;
; I can be reached at:
; United Fashions of Texas, Inc.
; 200 Ash Ave.
; McAllen, TX 78501
; (512) 631-2277/2276
; 8am-6pm
;
UNIVERSAL
COPY ASCII.TBL
;-------
; TCRT calls
; function (general)
DEFINE XTABF X
IF DF,SAVD1, PUSH D1
MOVW #<-1_8>+X,D1
TCRT
IF DF,SAVD1, POP D1
ENDM
; short (decimal)
DEFINE XTAB Y,X
IF DF,SAVD1, PUSH D1
MOVW #<Y'._8>+X'.,D1
TCRT
IF DF,SAVD1, POP D1
ENDM
; medium (decimal)
DEFINE XTABL Y,X
IF DF,SAVD1, PUSH D1
MOV #<<<Y'.>&255.>_8.>+X'.,D1
TCRT
IF DF,SAVD1, POP D1
ENDM
DEFINE XTABLF Y,X
IF DF,SAVD1, PUSH D1
MOV #<Y'._8.>+X'.,D1
TCRT
IF DF,SAVD1, POP D1
ENDM
; rotate (decimal)
DEFINE XTABR Y,X
IF DF,SAVD1, PUSH D1
MOVW #Y'.,D1
ROLW D1,#8
MOVB #X'.,D1
TCRT
IF DF,SAVD1, POP D1
ENDM
; rotate (general)
DEFINE XTABG Y,X
IF DF,SAVD1, PUSH D1
MOVW Y,D1
ROLW D1,#8
MOVB X,D1
TCRT
IF DF,SAVD1, POP D1
ENDM