[SOLVED] Problem 6: Assembly Language

15.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Write a complete assembly program that evaluates the following IF statement:

IF (A – B) 10, 20, 30

The program branches to statement 30 if A – B < 0 and performs an NAND operation over

A and B.

The program branches to statement 10 if A — B 0 and performs and a logical shift right

operation over A and performs a complement operation over B.

The program branches to statement 20 if A — B > 0 and performs a subtract operation over

A and B.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.