diff --git a/sh/conv b/sh/conv new file mode 100644 index 0000000..3f708a7 --- /dev/null +++ b/sh/conv @@ -0,0 +1,4 @@ +#!/bin/zsh +conv() { + printf "%08x\n" $(((0x$1-0x4F920000+0x80000000)^3)) +} diff --git a/sh/unconv b/sh/unconv new file mode 100644 index 0000000..20f114b --- /dev/null +++ b/sh/unconv @@ -0,0 +1,4 @@ +#!/bin/zsh +unconv() { + printf "%08x\n" $(((0x$1^3)&0x00FFFFFF+0x4F920000)) +}