Question: Please help me understand what is going on here...assembly language Microprocessor-Based System Design IDE68K/68000 Branch: Example (EQU, Bcc, ...) nR = Min of P and
Microprocessor-Based System Design IDE68K/68000 Branch: Example (EQU, Bcc, ...) nR = Min of P and Q (all unsigned numbers) EQU $A00 ;P is $A00 EQU $A02 Q is $A02 OA00 SOA01 SOA02 SOA03 SOA04 SOA05 EQU $A04 ;R is $A04 ORG $900 PROG starts here PROG CLR.W R clear R MOVE.W P,D1 ;store P into D1 BEQ DONE MOVE.W Q,D2 ;store Q into D2 BEQ DONE CMP.W D1,D2 ;compare P and Q BHI STRP Q > P MOVE.W D2,R store Q to R BRA DONE STRP MOVE.W D1,R store P to R DONE TRAP #15 DC.W 0 STOP
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
