Thread: [Tutorial] HackMew's Knowledge
View Single Post
Old July 31st, 2010 (12:26 PM). Edited July 31st, 2010 by IntrOutro.
IntrOutro IntrOutro is offline
Join Date: Jul 2010
Posts: 2
Thank you!

Once, I thought I had to make some comparative function. The closest thing I did was:

#dynamic 0x800000

#org @start
callasm YourOffset
buffernumber 0x0 LASTRESULT
buffernumber 0x1 LASTRESULT
msgbox @secret 0x2

#org @secret
= [buffer1] and [buffer2].
All this while, I thought that the LASTRESULT (0x800D) was the only carrier for an output/result, lol. I should be more careful in reading any scripts/tutorials after this.

So, yes, you would use 'buffer2'. Just remember that you have to buffer the second number and use '0x01' as the first parameter. It's a little counterintuitive because the number stored in 'buffer 0x0' is accessed via 'buffer1' and the number stored in 'buffer 0x1' is accessed via 'buffer2' but you'll get the hang of it. Also note that since you stored the second number at 'r0 + #0x02', the number would be contained in the variable after LASTRESULT (0x800D), i.e., 0x800E.
Thank you again for the reminder, the actual 2nd call is at 0x800F.
Reply With Quote