Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !@xPos m32 !
- !@yPos m33 !
- !@buttonTemp m34 !
- !@temp m35 !
- sub @xPos @xPos @xPos
- sub @yPos @yPos @yPos
- sub @buttonTemp @buttonTemp @buttonTemp
- Loop:
- add 0 0 @temp
- ClearScreenLoop:
- add 0 0 *@temp
- add @temp 1 @temp
- bne @temp 32 ClearScreenLoop
- add 0 b0 @buttonTemp
- and 128 @buttonTemp @buttonTemp
- bne 128 @buttonTemp SkipRight
- add @xPos 1 @xPos
- SkipRight:
- add 0 b0 @buttonTemp
- and 32 @buttonTemp @buttonTemp
- bne 32 @buttonTemp SkipLeft
- sub @xPos 1 @xPos
- SkipLeft:
- add 0 b0 @buttonTemp
- and 16 @buttonTemp @buttonTemp
- bne 16 @buttonTemp SkipUp
- sub @yPos 1 @yPos
- SkipUp:
- add 0 b0 @buttonTemp
- and 64 @buttonTemp @buttonTemp
- bne 64 @buttonTemp SkipDown
- add @yPos 1 @yPos
- SkipDown:
- bne @xPos -1 SkipResetXLow
- add 0 0 @xPos
- SkipResetXLow:
- bne @yPos -1 SkipResetYLow
- add 0 0 @yPos
- SkipResetYLow:
- bne @xPos 32 SkipResetXHigh
- add 0 31 @xPos
- SkipResetXHigh:
- bne @yPos 32 SkipResetYHigh
- add 0 31 @yPos
- SkipResetYHigh:
- ls 1 @xPos *@yPos
- vsync
- jmp Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement