The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!

GATE2000-11 [closed]

+6 votes

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

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

S3:INC             A
   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?
closed with the note: Out of syllabus now
asked in CO & Architecture by Veteran (59.9k points)
retagged by | 446 views

Related questions

0 votes
0 answers
asked Sep 26, 2014 in CO & Architecture by Kathleen Veteran (59.9k points) | 204 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
47,885 questions
52,252 answers
67,672 users