Computer Science 237 |
Lecture 08: More Assembly Programming
Date: September 25, 2006
cmp.w #160, %d4The 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 "col",-(%sp) move.w "row",-(%sp) oscall WinDrawPixel add.l #4,%sp