Does anyone have the code for a 'set hex at address [] of file [] to []', a 'hex [] to decimal', and a 'decimal () to hex' block?
Offline
What do you mean?
What would they do?
Offline
I need blocks to be able to edit the raw hex of a program.
Offline
Here's the decimal to hex and vice versa. Changing the contents of the file is more difficult but you should be able to do it.
decimalToHex: aNumber
^ (aNumber hex) allButFirst: 3.
hexToDecimal: aString
^ Number readFrom: aString base: 16.Offline
Thank you so much! I am making a Sonic the Hedgehog hacking utility in Panther.
Offline