Return to Snippet

Revision: 19825
at November 1, 2009 01:20 by Zufolek


Initial Code
;returns power of 2 for arg in accumulator
pow2
 tax
 lda Pow2Tab,x
 rts

Pow2Tab
 .byte 1
 .byte 2
 .byte 4
 .byte 8
 .byte 16
 .byte 32
 .byte 64
 .byte 128

Initial URL


Initial Description


Initial Title
6502 Subroutine To Return a Power of 2

Initial Tags


Initial Language
Assembler