0 votes 0 votes In 0-address instruction, no address is specified within an instruction along with the Opcode, so is it possible to use 0-address instruction in accumulator based architecture? CO and Architecture computer-architecture co-and-architecture + – Subhadeeppathak asked Apr 23, 2022 Subhadeeppathak 536 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes No in Accumulator Based Cpu Architecture Only 1 Address instruction format is used For any kind of operation like storing,manipulation etc. Divya2199 answered May 7, 2022 Divya2199 comment Share Follow See 1 comment See all 1 1 comment reply Arjun commented May 7, 2022 reply Follow Share Any reference for this? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Some zero-address instructions can work in accumulator-based architecture and these instructions implicitly address the accumulator and need no other arguments. For example “NEG” would negate the value in the accumulator. Reference- https://www.quora.com/How-can-you-explain-the-difference-between-three-address-two-address-one-address-instructions-zero-address-instruction-with-suitable-examples “NEG” instruction Replaces the value of operand (the destination operand) with its two's complement. The destination operand is located in a general-purpose register or a memory location.. And An accumulator-based CPU architecture is a register-based CPU architecture that only has one general-purpose register (the accumulator). In this video ( https://www.youtube.com/watch?v=VKwGbusqpNo&t=309s ) the working of ‘NEG’ is explained and so it is clear that we does not need to explicitly specify an effective address for either the source or the destination (or sometimes both) in case of ‘NEG’ instruction since it can directly work on Accumulator in a implicit manner. So it seems it is possible to use some 0-address instruction in accumulator-based architecture. Shubham Sharma 2 answered May 26, 2022 Shubham Sharma 2 comment Share Follow See all 0 reply Please log in or register to add a comment.