LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

2 CHR to 1 CHR compression

Root / Programming Questions / [.]

XenoslyceCreated:
Okay, so I saw that one dude's huge OSP platformer, and it apparently uses a compression method that turns 2 CHR into one, then it gets converted to L E G A L C O D E once executed. I've been thinking of attempting to reverse engineer it, but I'm still noobish. Any help?

2 to 1:
T$ = CHR$(ASC("A")+(ASC("B")<<8))
1 to 2:
X = ASC("?")
A$ = CHR$(X AND 255)
B$ = CHR$(X>>8)

Oh crap, it's that easy?