← Back to team overview

gnusim8085-devel team mailing list archive

[Bug 584110] Re: AC flag and DAA error

 

Felix,

Can you please describe all the errors in detail? Are they same as
mentioned in bug 584093?

-- 
AC flag and DAA error
https://bugs.launchpad.net/bugs/584110
You received this bug notification because you are a member of
GNUSim8085 developers, which is subscribed to gnusim8085.

Status in gnusim8085: New

Bug description:
I have been running the following program step by step and found many CY, AC wrong flags and DAA conversion errors.

start:	xra	a
	mov	b,a
	mov	c,a
	mvi	l,100
	mvi	h,100
loop:	add	b
	daa
	call	delay
	mov	a,b
	adi	1
	daa
	mov	b,a
	mov	a,c
	dcr	l
	jnz	loop
	mov	a,c
	adi	1
	daa
	mov	c,a
	mvi	l,100
	dcr	h
	jnz	loop
	
	hlt

delay:	lxi	d,0ffffh
delp:	dcx	d
	mov	a,e
	ora	d
	jnz	delp
	ret

Please check it out.





References