Statistics: Posted by Mac — Wed Mar 05, 2008 6:55 pm
Statistics: Posted by burger2227 — Tue Mar 04, 2008 1:30 pm
Statistics: Posted by Codemss — Tue Mar 04, 2008 12:59 pm
Statistics: Posted by Sinuvoid — Tue Mar 04, 2008 8:42 am
Code:
Menu - Last byte is currently 2007 1) Read hex 2) Write hex <------------ I chose this option 3) FinishedCharacter Number? 2008 <--- I selected last+1 to append new charValue: e3 <---------------- I entered this HexDoneMenu - Last byte is currently 2008 1) Read hex <------------ I chose this option 2) Write hex 3) FinishedCharacter Number? 2008Value is E3 <------------- I see the value was successfully added
Code:
OPEN "z64" FOR BINARY AS #1DIM Size AS LONG: Size = LOF(1)DIM CharNum AS LONGCLSDO PRINT : PRINT "Menu - Last byte is currently"; Size PRINT " 1) Read hex" PRINT " 2) Write hex" PRINT " 3) Finished" SELECT CASE INPUT$(1) CASE "1": GOSUB Read1 CASE "2": GOSUB Write1 CASE "3": EXIT DO CASE ELSE: PRINT "GOOF use 1 2 3 only" END SELECTLOOPCLOSE #1SYSTEMDIM TheChar AS STRING * 1DIM TheHex AS STRING * 2Read1:INPUT "Character Number"; CharNumIF CharNum < 1 THEN PRINT "Too little": RETURNIF CharNum > Size THEN PRINT "Too big": RETURNGET #1, CharNum, TheCharTheHex = UCASE$(HEX$(ASC(TheChar)))PRINT "Value is "; TheHexRETURNWrite1:INPUT "Character Number"; CharNumIF CharNum < 1 THEN PRINT "Too little": RETURNIF CharNum > Size + 1 THEN PRINT "Too big": RETURNLINE INPUT "Value: "; TheHexTheHex = UCASE$(TheHex)IF LEN(TheHex) <> 2 THEN PRINT "Need two chars such as 3F": RETURNDIM w1 AS INTEGER, W2 AS INTEGERw1 = INSTR("0123456789ABCDEF", LEFT$(TheHex, 1))IF w1 = 0 THEN PRINT "Use 0-F only": RETURNW2 = (w1 - 1) * 16w1 = INSTR("0123456789ABCDEF", RIGHT$(TheHex, 1))IF w1 = 0 THEN PRINT "Use 0-F only": RETURNW2 = W2 + w1 - 1TheChar = CHR$(W2)PUT #1, CharNum, TheCharSize = LOF(1)PRINT "Done"RETURN
Statistics: Posted by Mac — Tue Mar 04, 2008 7:02 am
Statistics: Posted by burger2227 — Tue Mar 04, 2008 3:23 am
Code:
This is hex, translates tooooooooo-----------------V1A F4 D7 B1 F5 AA 22 ------------> Some random ASCII characters.
Code:
-Hex code-*Insert Your hex code here, at the end of file*
Statistics: Posted by Sinuvoid — Tue Mar 04, 2008 12:12 am
Statistics: Posted by burger2227 — Mon Mar 03, 2008 11:35 pm
Statistics: Posted by Sinuvoid — Mon Mar 03, 2008 3:03 pm
Statistics: Posted by Mac — Mon Mar 03, 2008 12:40 pm
Statistics: Posted by Codemss — Mon Mar 03, 2008 12:33 pm
Code:
-stuff-OPEN "File.z64" FOR BINARY (Or Random?) AS #1PUT (Forget the rest of the command XD But I know it puts whatever a variable has in a certain spot)CLOSE #1
Statistics: Posted by Sinuvoid — Mon Mar 03, 2008 10:04 am