536 views

2 Answers

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.
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.

Related questions

1 votes
1 votes
1 answer
2
isriram asked Jun 9, 2022
1,095 views
Consider a system which supports only 1-address type instructions. The size of memory the system has is $2^m$ KB. The system supports ' i ' distinct instructions. The len...