Thread: [Tutorial] HackMew's Knowledge
View Single Post
  #91    
Old July 31st, 2010, 12:26 PM
IntrOutro
Beginning Trainer
 
Join Date: Jul 2010
Tournaments Joined: 0
Tournaments Won: 0
Thank you!

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

Code:
#dynamic 0x800000

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

#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.

Quote:
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.

Last edited by IntrOutro; July 31st, 2010 at 12:59 PM.