Question: Write 68000 code to implement the program defined by the flowchart main on shown above. A variable, InitVal, is defined in another part of the

Write 68000 code to implement the program defined by the flowchart main on shown above. A variable, InitVal, is defined in another part of the program and contains an important number. This number is to be placed by main in a variable X, which has also been defined somewhere else. Assume the linkage uses register A0 to contain the address of X, so the subroutine can access it.
Main MoveTowardZero Get X No Yes MoveTowardZero No Decrement X Increment X Exit Return Main MoveTowardZero Get X No Yes MoveTowardZero No Decrement X Increment X Exit Return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
