Skip to content

Instantly share code, notes, and snippets.

@aurorapar
Created November 9, 2016 23:10
Show Gist options
  • Save aurorapar/5eebbb8020cb97e5f37c65288f3a28e9 to your computer and use it in GitHub Desktop.
Save aurorapar/5eebbb8020cb97e5f37c65288f3a28e9 to your computer and use it in GitHub Desktop.
; 2^i * Y
MOV R5, R4
TSTR4: TST R4
BEQ TSTSUB
ASL R2 ; ASL for DP is SHIFT HIGH, then ADC
ASL R3 ; Y is DP
ADC R2
DEC R4
BR TSTR4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment