Translate the following fragment of highlevel language into

Translate the following fragment of high-level language into 68000 assembly language. Assume the labels \'T, \'X\', and \'Y\' have already been defined as references to specific memory addresses.

Solution

Assembly Code Corresponding Instructions

ORG $400 Start of a Program

MOVE.B T,DO Get the value of T

CMP #10, T Compare the value of T with 10

BLT EXIT_IF If T is less than 10 then control goes to EXIT_IF

MOVE #3,X Assign value 3 to X (This is Then Part)

EXIT_IF MOVE #5,Y Assign Value 5 to Y (This is else part)

 Translate the following fragment of high-level language into 68000 assembly language. Assume the labels \'T, \'X\', and \'Y\' have already been defined as refe

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site