| View previous topic :: View next topic |
| Author |
Message |
happyreadygo Advanced Cheater
Reputation: 1
Joined: 14 Sep 2011 Posts: 87
|
Posted: Fri Sep 28, 2012 1:00 pm Post subject: read 3 bytes? |
|
|
adress 0x00dc04b4 has FFFFFF35 as value.
if we wants a byte , we can use
| Code: | | readbytes('0x00dc04b4',1) |
we got result 35
if we wants 4 bytes , we can use
| Code: | | readInteger('0x00dc04b4') |
we got FFFFFF35
what if we want 2 bytes or 3 bytes? how to get the result as FF35 or FFFF35
readbytes('0x00dc04b4',3) seems not work , I got only 35
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25975 Location: The netherlands
|
Posted: Fri Sep 28, 2012 2:04 pm Post subject: |
|
|
for a 2 byte address do
readInteger(0x00dc04b4) %0x10000
for a 3 byte address do:
readInteger(0x00dc04b4) %0x1000000
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
happyreadygo Advanced Cheater
Reputation: 1
Joined: 14 Sep 2011 Posts: 87
|
Posted: Fri Sep 28, 2012 2:17 pm Post subject: |
|
|
thank you dark byte
|
|
| Back to top |
|
 |
happyreadygo Advanced Cheater
Reputation: 1
Joined: 14 Sep 2011 Posts: 87
|
Posted: Tue Oct 02, 2012 12:59 pm Post subject: |
|
|
how about write 2 and 3 bytes?
the value in apAddress is FFFFFF35 . the ap point of materia ball is 3bytes of "0xFFFFFF" . while 1 byte of "0x35" is the materia ball that hold the ap point.
and
can we do
| Code: | ap=readInteger(apAddress+0x1)%1000000 --we got 3bytes of 0xffffff
ap=ap-5000 --ap is 0xffec77 now
writeBytes(apAddress+0x01,ap) --This is what I think, but it ll error probably |
|
|
| Back to top |
|
 |
|