Google
 

Trailing-Edge - PDP-10 Archives - decuslib20-03 - decus/20-0078/libsim/storeb.mac
There are 2 other files named storeb.mac in the archive. Click here to see a list.
COMMENT * SIMULA specification;
OPTIONS(/E:QUICK,storebyte);
INTEGER PROCEDURE storebyte(b,bp,incr); INTEGER b,bp,incr;
COMMENT store the byte B via the standard byte pointer BP.
If incr = 0, use DPB, if incr = 1, use IDPB. If other values of incr are given,
modify before using  DPB.
The value of storebyte is the stored byte.
;

!*;! MACRO-10 code !*;!

	TITLE	storebyte
	ENTRY	storebyte
	SUBTTL	SIMULA utility, Lars Enderin Oct 1977

;!*** Copyright 1977 by the Swedish Defence Research Institute. ***
;!*** Copying is allowed.					***


	sall
	search	simmac,simmcr,simrpa
	macinit

	;! Local definitions ;!

	b==<result==0>
	bp=b+1
	incr=bp+1

storebyte:
	PROC
	L XIAC,b(XTAC)
	LD bp(XTAC)
	IF JUMPN X1,FALSE
	THEN  DPB XIAC,
	ELSE
	  IF CAIE X1,1
	     GOTO FALSE
	  THEN IDPB XIAC,
	  ELSE ;!Modify (KL-10 only)
	    ADJBP X1,bp(XTAC)
	    DPB XIAC,X1
	FI FI
	RET
	EPROC
	LIT
	END;