Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *-----------------------------------------------------------
- * Title :
- * Written by :
- * Date :
- * Description: C.W = 0 if A.W = B.W, else 1
- *-----------------------------------------------------------
- ORG $1000
- A DC.W 13
- B DC.W 13
- C DS.W 1
- START: ; first instruction of program
- * Put program code here
- MOVE.W A, D0
- CMP.W B, D0
- BEQ ET0
- MOVE.W #1, C
- BRA FINISH
- ET0:
- MOVE.W #0, C
- FINISH:
- SIMHALT ; halt simulator
- * Put variables and constants here
- END START ; last line of source
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement