Question: For example, the instruction Mul 9 7 , # 9 , 9 8 would multiply the data in memory location 9 7 by the

For example, the instruction "Mul 97, #9,98" would multiply the data in memory location 97 by the 9, storing the result into memory location 98. So if the data in location 97 were 20, then the instruction would multiply 20 by 9, storing the result 180 into location 98. That instruction would actually be stored in memory as 0s and 1s, such as "01111000010010011100010", where 011 specifies a multiply instruction, and 1100001,001001, and 1100010 represent 97,9, and 98(as described previously). The following animation illustrates the storage of instructions and data in memory for a program that computes F =(9*C)/5+32, where C is memory location 97 and F is memory location 99.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!