retagged by
1,310 views
6 votes
6 votes
closed with the note: Out of syllabus now

Consider the following 8085 program segment, where registers B and C contain BCD values:

S1: MVI           A, 99H 
    MVI           D, 00H
    SUB           C
    ADD           B
    DAA

S2: JC             S3
   MOV             E, A
   MVI             A, 99H
   SUB             E
   MOV             E, A
   JZ              S4
   MVI             D, FFH
   JMP             S4

S3:INC             A
   DAA 
   MOV             E, A

S4: .........

  1. For the two pairs (B = 44, C = 25) and (B = 33, C = 46) at S1,
    1. Find the values in register A when control reaches S2.
    2. Find the values in register D and E when control reaches S4.
  2. What, in general, is the value of D and E as a function of B and C when control reaches S4?
retagged by

Related questions

1 votes
1 votes
1 answer
3
Kathleen asked Sep 14, 2014
2,651 views
To put the 8085 microprocessor in the wait statelower the HOLD inputlower the READY inputraise the HOLD inputraise the READY input