- 1 Given The Instruction Sets For Machine 1 Write Program To Calculate P B Axc D E A B D And Comment O 1 (38.61 KiB) Viewed 42 times
1. Given the Instruction sets for Machine-1, write program to calculate: P= (B + (AXC +D)) / (E×A - B × D) and comment o
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Given the Instruction sets for Machine-1, write program to calculate: P= (B + (AXC +D)) / (E×A - B × D) and comment o
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