.TXT

# Problem 6: Assembly Language

Problem 6: Assembly Language

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.

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.

You'll get a 1.0KB .TXT file.