Created
February 19, 2013 16:36
-
-
Save BlockoS/4987518 to your computer and use it in GitHub Desktop.
unpack 5->8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbba_aaaa <- 4 lda input | 4 lda input | |
dccc_ccbb 2 and #$1f | 2 and #$1f | |
eeee_dddd 4 sta output | 4 sta output | |
ggff_fffe | |
hhhh_hggg | |
bbxx_xxxx 6 asl input 4 lda input+2 | 4 lda input+1 4 sta ouput+3 | |
cccc_cbbb 6 rol input+1 2 and #$1f | 4 sta r0 | |
eeed_dddd <- 6 rol input+2 4 sta output+3 | 4 lda input+2 | |
gfff_ffee 6 rol input+3 | 6 asl r0 | |
hhhh_gggg 6 rol input+4 | 2 rol A | |
xxxx_xxxh 6 rol input+5 | 2 and #$1f | |
bxxx_xxxx 6 asl input 4 lda input+4 | 4 lda input+3 2 rol A | |
cccc_bbbb 6 rol input+1 2 and #$1f | 4 sta r0 2 and #$1f | |
eexx_xxxc 6 rol input+2 4 sta output+6 | 4 lda input+4 4 sta output+6 | |
ffff_feee 6 rol input+3 | 6 asl r0 | |
hhhg_gggg <- 6 rol input+4 | 2 rol A | |
xxxx_xxhh 6 rol input+5 | 6 asl r0 | |
xxxx_xxxx 4 lda input+1 | 4 lda input 2 rol A | |
cccb_bbbb <- 6 asl input+1 2 and #$1f | 4 sta r0 2 asl A | |
exxx_xxcc 6 rol input+2 4 sta output+1 | lda input+1 2 rol A | |
ffff_eeee 6 rol input+3 | 6 asl r0 2 and #$1f | |
hhxx_xxxf 6 rol input+4 | 2 rol A 4 sta output+1 | |
xxxx_xhhh 6 rol input+5 | 6 asl r0 | |
xxxx_xxxx 4 lda input+3 | 4 lda input+2 2 and #$1f | |
ccxx_xxxx 6 asl input+1 2 and #$1f | 6 lsr input+3 4 sta output+4 | |
xxxx_xccc 6 rol input+2 4 sta output+4 | 2 ror A | |
fffe_eeee <- 6 rol input+3 | 2 lsr A | |
hxxx_xxff 6 rol input+4 | 2 lsr A | |
xxxx_hhhh 6 rol input+5 | 2 lsr A | |
xxxx_xxxx 4 lda input+5 | 4 lda input+4 | |
cxxx_xxxx 6 asl input+1 2 and #$1f | 2 lsr A | |
xxxx_cccc 6 rol input+2 4 sta output+7 | 2 lsr A | |
ffxx_xxxx 6 rol input+3 | 2 lsr A | |
xxxx_xfff 6 rol input+4 | 2 and #$1f | |
xxxh_hhhh <- 6 rol input+5 | 4 sta output+7 | |
xxxx_xxxx 4 lda input+3 | 4 lda input+1 | |
xxxx_xxxx 2 and #$1f | 2 lsr A | |
xxxc_cccc <- 6 asl input+2 4 sta output+2 | 2 lsr A | |
fxxx_xxxx 6 rol input+3 | 2 and #$1f | |
xxxx_ffff 6 rol input+4 | 4 sta output+2 | |
xxxx_xxxx | | |
xxxx_xxxx 4 lda input+4 | 4 lda input+3 | |
xxxx_xxxx 2 and #$1f | 2 and #$1f | |
xxxx_xxxx 4 sta output+5 | 4 sta output+5 | |
xxxx_xxxx 6 asl input+3 | | |
xxxf_ffff <- 6 rol input+4 | | |
xxxx_xxxx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment