-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|615|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Variables


 
Dan
Created : 29 February 2020
Edited : 29 February 2020
System : Windows
Language : Blitz

String byte packer/unpacker (crucher ?!)

Pack/crunch a string, containing 2 bytes data

Hi, this is my try to write a Packer/Cruncher.

I'v used it for the game Dithel's Wonderland - English Amiga Board post which i have converted from amos pro to blitzbasic.

The function should pack the hexadecimal bytes into smaller ones.
This means that the smallest pair is from "00" to "ff" and the string should contain these bytes, but the packer is not limited to a-f letters.

Filename: Function-StringPackerUnpacker.bb

 

Comments


Saturday, 29 February 2020, 05:34
Dan
Here is a test code for the above function: