View Single Post
  #9    
Old April 3rd, 2008 (01:08 AM). Edited April 3rd, 2008 by Darthatron.
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Quote originally posted by ZodiacDaGreat:
Thanks for fixing em, by the way how do you replace hex values in a ROM of say 10 bytes?
To read the string of 10 Bytes:
Code:
String = ReadHEX(ROMLocation, Offset, 10)
To write a string of 10 Bytes:
Code:
WriteHEX ROMLocation, Offset, Right("00000000000000000000" & Data, 20)
You see, you need to use the number of Bytes times 2, for the number of 0's you need to use. So, for 15 Bytes, you need 30 0's. the same goes for the number at the end.
_______________

Hope that helped.
__________________
あなた は しきしゃ です
わたし は ばか です
Reply With Quote