? How do I make a hex file dumper? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Tell us how you'd like SBS to move forward: New SBS Status

How do I make a hex file dumper?

  • #1 ✎ 35 Forsaken_AstralDev1 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself How would I code this? Posted
  • #2 ✎ 33 Chatter Your questions are too vague to answer helpfully. Please look over Seggie's posting educate post. What are you trying to dump into a hex file? Posted
  • #3 ✎ 35 Forsaken_AstralDev1 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself DAT files Posted
  • #4 ✎ 564 HTV04 Forum Leader Hidden Achievements Third Year My account is over 3 years old Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength I had the exact same question as you a while back, and someone gave me this script: S$="" FOR I=0 TO LEN(ARR)-1 B0=ARR[I] AND &HFF B1=ARR[I]>>8 AND &HFF B2=ARR[I]>>16 AND &HFF B3=ARR[I]>>24 AND &HFF INC S$,CHR$(B0)+CHR$(B1)+CHR$(B2)+CHR$(B3) NEXT This will take a 1D array (in this case, the one you loaded from the DAT file) and convert its bytes into ASCII characters in a string. What project are you working on? This script can probably be modified to better fit it. Posted Edited by HTV04