Skip to content

Instantly share code, notes, and snippets.

@emoon
Last active January 2, 2016 06:19
Show Gist options
  • Save emoon/8262777 to your computer and use it in GitHub Desktop.
Save emoon/8262777 to your computer and use it in GitHub Desktop.
RSRESET
Window_Next RS.L 1 ; offset 0
Window_LeftEdge RS.W 1 ; offset 4
..
Window_SIZEOF RS.B 0
move.w #4,d7 ; 4 windows to process
lea Window,a0
.loop
move.w Window_LeftEdge(a0),d0
...
lea Window_SIZEOF(a0),a0 ; Get next window
subq #1,d7
bne.s .loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment