Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
;; cmp word [ball_x], WIDTH - BALL_WIDTH
ref_x: cmp word 30, WIDTH - BALL_WIDTH
;; the "+ 1" here is the size of the "cmp word" opcode
;; ball_x will point to the memory address of "30" above
%define ball_x (ref_x + 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment