AC flag and DAA error

Bug #584110 reported by felixcpfung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnusim8085
New
Undecided
Unassigned

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.

security vulnerability: yes → no
visibility: private → public
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Felix,

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.