Trailing-Edge
-
PDP-10 Archives
-
decuslib20-03
-
decus/20-0078/libsim/adjptr.mac
There are 2 other files named adjptr.mac in the archive. Click here to see a list.
COMMENT * SIMULA specification;
OPTIONS(/E:QUICK,adjptr);
INTEGER PROCEDURE adjptr(bp,incr);
INTEGER bp, incr;
COMMENT Adjust the byte pointer BP by INCR bytes, using ADJBP
(works only on KL-10/20).
The value of ADJPTR is the adjusted pointer.
;
!*;! MACRO-10 code !*;!
TITLE adjptr
ENTRY adjptr
SUBTTL SIMULA utility, Lars Enderin Jan 1978
;!*** Copyright 1978 by the Swedish Defence Research Institute. ***
;!*** Copying is allowed. ***
sall
search simmac,simmcr,simrpa
macinit
;! Local definitions ;!
incr==<bp==<result==0>>+1
adjptr: PROC
LD bp(XTAC)
IF JUMPE X1,FALSE
THEN
ADJBP X1,bp(XTAC)
ST X1,result(XTAC)
FI
RET
EPROC
LIT
END;