This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-15 04:24:33

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Block help!

Does anyone have the code for a 'set hex at address [] of file [] to []', a 'hex [] to decimal', and a 'decimal () to hex' block?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#2 2011-07-15 04:32:50

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Block help!

What do you mean?
What would they do?

Offline

 

#3 2011-07-15 05:16:08

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Block help!

panther blocks?

Offline

 

#4 2011-07-15 05:44:51

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Block help!

I need blocks to be able to edit the raw hex of a program.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#5 2011-07-15 10:02:48

PyroBunny
New Scratcher
Registered: 2011-06-23
Posts: 2

Re: Block help!

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.

Code:

decimalToHex: aNumber
    ^ (aNumber hex) allButFirst: 3.

hexToDecimal: aString
    ^ Number readFrom: aString base: 16.

Offline

 

#6 2011-07-15 15:40:14

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Block help!

Thank you so much! I am making a Sonic the Hedgehog hacking utility in Panther.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

Board footer