

; THIS ROUTINE PERFORM ADDITIONS OF 4-BYTE DATA FIELDS IN BINARY.
; THE 4 BYTES FROM DATA MEMORY LOCATIONS 24 THRU 27 ARE ADDED TO
; THE 4 BYTES IN DATA MEMORY LACATIONS 16 THRU 19. THE RESULTS REPLACE
; THE DATA IN MEMORY LACATIONS 24 THRU 27.
;
;
; EDITTED MAY 11, 1994 - REVISED FOR NEW ASSEMBLER (ASMCOP v4.2) 
;

	.TITLE  BADD
	.CHIP	ANYCOP
        .SECT   MAIN,ROM,INPAGE

	LD	X,#16	;NO LEADING ZERO
	LD	B,#24	;INDICATES DECIMAL
	RC
LOOP:	LD	A,[X+]
	ADC	A,[B]
	X	A,[B+]
	IFBNE	#12
	JP	LOOP
	IFC
	JP	OVFLOW  ;OVERFLOW IF C
          

