View previous topic :: View next topic |
Author |
Message |
Razi Expert Cheater Reputation: 1
Joined: 17 Jan 2018 Posts: 202
|
Posted: Thu May 17, 2018 3:02 am Post subject: How to write 3 bytes values? |
|
|
How to write 3 bytes values? I want to type 3 byte value in the edit box and push Enter button, and after that 3 byte value,will be written to 3-byte address. How to do this? CE version 6.5.
Last edited by Razi on Thu May 17, 2018 3:28 am; edited 1 time in total |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu May 17, 2018 3:09 am Post subject: |
|
|
Code: |
local temptable=dwordToByteTable(1122867)
table.remove(temptable,4)
writeBytes(address,temptable)
|
No idea if it works on 6.5, we don't give any support on that version anymore
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Razi Expert Cheater Reputation: 1
Joined: 17 Jan 2018 Posts: 202
|
Posted: Thu May 17, 2018 7:14 am Post subject: |
|
|
Thank you very much, it works on 6.5 version. I thought next code can help,
Code: | bAnd(0xFFFFFF, writeInteger('00A3F45F',0x020202)) |
but it writes 0x00 to fourth byte. Are there any other methods to write 3 byte value? It's just interesting to know all the existing methods.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu May 17, 2018 9:43 am Post subject: |
|
|
something like
writeInteger(address, bOr(bAnd(readInteger(address),0xff000000), 0x020202)
---
or what also works for 6.6+
writeInteger(address, (readInteger(address) & 0xff000000) | 0x202020)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|