Skip to content

Instantly share code, notes, and snippets.

@foone
Created May 3, 2015 00:44
Show Gist options
  • Save foone/d952a6ce8578ce9450ea to your computer and use it in GitHub Desktop.
Save foone/d952a6ce8578ce9450ea to your computer and use it in GitHub Desktop.
decompress.txt
1 1 1 0 copy_size=2 shr=4 and=000FFF add=0241 nextbyte=ebx-2 ebx+=2
bits:
001 002 004 008 010 020 040 080 100 200 400 800
1 2 4 8 16 32 64 128 256 512 1024 2048
-----------------------------------------------------------
0 ? ? ? ? ? ? ? ? ? ? ? COPY nexttest=02
1 0 ? ? ? ? ? ? ? ? ? ? shr=2 add=001 and=001 COPY nexttest=08
1 1 0 ? ? ? ? ? ? ? ? ? shr=3 add=003 and=003 COPY nexttest=20
1 1 1 0 ? ? ? ? ? ? ? ? shr=4 add=007 and=007 COPY nexttest=80
1 1 1 1 0 ? ? ? ? ? ? ? shr=5 add=00F and=00F nextbyte=ebx-3 nexttest=02
1 1 1 1 1 0 ? ? ? ? ? ? shr=6 add=01F and=01F nextbyte=ebx-3 nexttest=08
1 1 1 1 1 1 0 ? ? ? ? ? shr=7 add=03F and=03F nextbyte=ebx-3 nexttest=20
1 1 1 1 1 1 1 0 ? ? ? ? shr=8 add=07F and=07F nextbyte=ebx-3 nexttest=80
1 1 1 1 1 1 1 1 0 ? ? ? shr=9 add=0FF and=0FF nextbyte=ebx-2 nexttest=02
1 1 1 1 1 1 1 1 1 0 ? ? shr=A add=1FF and=1FF nextbyte=ebx-2 nexttest=08
1 1 1 1 1 1 1 1 1 1 0 ? shr=B add=3FF and=3FF nextbyte=ebx-2 nexttest=20
1 1 1 1 1 1 1 1 1 1 1 0 shr=C add=7FF and=7FF nextbyte=ebx-2 nexttest=80
1 1 1 1 1 1 1 1 1 1 1 1 EXIT WITH FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment