What is Direct Addressing Mode ?

No comments

Direct Addressing Mode :

In this mode of addressing the address of the operand (data) is given in the instruction itself.

Example:-

1)  STA 2500H (store the content of Accumulator in the memory location 2500)
In this instruction 2500H is the memory address where data is to be stored. It is given in the instruction specify the address of the memory location the source of the data is accumulator.

2)  IN62    (read data from port C)
In this instruction 62 is the address of the port C of an input/output port from where the data is to be read. It is implied that the destination is the accumulator. The 2nd byte of the instruction specifies address of the port.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀