1. Given the Instruction sets for Machine-1, write program to calculate: P= (B + (AXC +D)) / (E×A - B × D) and comment o
Posted: Fri Jul 01, 2022 5:35 am
1. Given the Instruction sets for Machine-1, write program to calculate: P= (B + (AXC +D)) / (E×A - B × D) and comment on relative efficiency. Machine-1: One address instructions STORE X; X<- [AC] LOAD X; AC<- [X] MPY X ; AC<- [AC X X] DIVX ; AC<-[AC / X] ADD X ; AC<- [AC + X] SUB X ; AC<- [AC-X] X could be memory address/CPU register/variable