in Unknown Category
6,587 views
2 votes
2 votes
in Unknown Category
by
6.6k views

1 Answer

0 votes
0 votes
Push B is one address instruction becoz to push value onto stack we need the address of top of the stack so due to this adddress it is again one address instruction only !

3 Comments

It is one address, but addressing mode refers to how the operand is obtained- like direct, indirect, immediate, indexed.
0
0
Yes sir. Push instruction uses direct addressing mode but it is invalid to say like PUSH A

THERE SHOULD BE ADDRESS MENTIONED AFTER OPCODE IN CASE OF DIRECT ADDRESSING MODE

Ex : push 03

WHERE O3 TELLS PUSH IN REGISTER R3.
0
0
moved by

It is indirect addressing mode

This is not direct we are not mentioning address here

PUSH  Push register pair onto stack

now PUSH B will copy the contents of register pair BC into the stack in given order

1)The stack pointer is decremented and the contents of B are copied into that location so address is found by stack pointer which is pointing so some location in stack (so indirectly memory access one memoy access)

2) The stack pointer is decremented again and the contents of C  are copied into that location

2
2

Related questions

0 votes
0 votes
2 answers
1
parvati h asked in Unknown Category Jun 25, 2016
1,799 views
parvati h asked in Unknown Category Jun 25, 2016
1.8k views
0 votes
0 votes
1 answer
3
lea asked in Operating System Jun 12, 2023
375 views
lea asked in Operating System Jun 12, 2023
by lea
375 views
0 votes
0 votes
2 answers
4
lea asked in CO and Architecture Jun 12, 2023
317 views
lea asked in CO and Architecture Jun 12, 2023
by lea
317 views