|
Computer Science 237 |
Lecture 8: More Assembly Programming
Date: September 26, 2005
cmp.w #160, %d4
The arguments appear in the opposite order we'd expect in C.
What it really does is computes a subtraction (d4-160) and sets the status bits, but throws away the result.
Many instructions set status bits (not branches).
move.w "row",-(%sp)
move.w "col",-(%sp)
oscall WinDrawPixel
add.l #4,%sp