/ Published in: Assembler
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
;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