Posted: Fri May 06, 2005 8:12 am
Yeah, kind of...
Run this against your procedure:
The results should be
Run this against your procedure:
Code: Select all
*HoldText.l
*HoldText = AllocateMemory(1024)
x_hextomem(*HoldText, "$3056306E")
Debug " ---- WORD "
Debug PeekW(*HoldText)
Debug PeekW(*HoldText + 2)
Debug " ---- WORD Hex"
Debug Hex(PeekW(*HoldText))
Debug Hex(PeekW(*HoldText + 2))
FreeMemory(*HoldText)
I'm still learning about memory and such. The WORD hex values are reversed. 5630 when it should be 3056, etc... How can I fix that so it returns 3056? I'm thinking it's something really obvious but I don't have much experience with this part yet. $5630 will return 22064 in decimal while $3056 returns the proper 12374 in decimal.---- WORD
22064
28208
---- WORD Hex
5630
6E30