. Imagine you are a store owner and you have a cash register (point of sale) powered by the simple processor. A customer
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
. Imagine you are a store owner and you have a cash register (point of sale) powered by the simple processor. A customer
. Imagine you are a store owner and you have a cash register (point of sale) powered by the simple processor. A customer purchased three items with a price of RM 2.00, RM 5.00 and RM 3.00 respectively. a. Write the relevant instructions in the memory module (both assembly language and machine language) to add both prices and gives the total as the output. Illustrate and explain the data movement where your answer must include the content of Program Counter (PC) and relevant registers. b. Write the relevant instructions in the memory module (both assembly language and machine language) if the customer decided not to buy the RM 200 item after the cashier scans the price. Produce the new total as the output. Illustrate and explain the data movement where your answer must include the content of Program Counter (PC) and relevant registers.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!