Find the addressing mode and target address for this instruction:

From Assemblers chapter in PU/ System Programming

Asked on 6 Apr, 2022

Like 0 Dislike 108 Views

Instruction: 012030

PC: 2000

B: 5030

X: 3000

Add a comment

4 Answers

Anonymous on 7 Apr, 2022 Like 1 Dislike

Page495-499-Appendix-A.pdf (iupui.edu)

Yesko according garne ho vane sir le garaunu vako thik ho

Add a comment

Alson Garbuja on 6 Apr, 2022 Like -1 Dislike

012030 = 0000 0001 0010 0000 0011 0000

Then,

opcode n i x b p e displacement
0000 00 0 1 0 0 1 0 0000 0011 0000


Since, n = 0 and i = 1

Addressing mode = Immediate Addressing mode

 

Target Address = disp = 0030

Add a comment

Alson Garbuja on 6 Apr, 2022 Like 1 Dislike

Sir ko hisab le answer hai yo chai

 

012030 = 0000 0001 0010 0000 0011 0000

Then,

Opcode(6) n i x b p e disp
0000 00 0 1 0 0 1 0 0000 0011 0000

Since, n = 0 and i = 1

Addressing mode = Immediate Addressing mode

 

Target Address = PC + disp

                          = 2000 + 030

                          = 2030

comments on the answer (1)

Like 0 Dislike Yo ni thikai raxa. Immediate addressing mode ma p=1 vaye #<LABEL> huni raxa argument. Ani tei <LABEL> ko value chai displacement huni raxa. arjun adhikari on 28 May, 2022

Add a comment

Alson Garbuja on 6 Apr, 2022 Like 1 Dislike

comments on the answer (3)

Like 0 Dislike n=0, i =1 vayesi immediate addressing vayo haina. Ani Immediate addressing vayesi PC realtive vayeni navayeni matlab nahuna parne haina ? arjun adhikari on 28 May, 2022

Like -1 Dislike Sir le dinu bhako mah Alson Garbuja on 28 May, 2022

Like -1 Dislike Sir le dinu bhako mah Alson Garbuja on 28 May, 2022

Add a comment


Add your answer