24.48K because?
24.48K because?
Remember to always click the thanks button of those who help you! It makes them feel wanted:↓
Here is my smart inventory code with loops
Type "st" and send it to store the item in the first empty slot. If the code finds an empty slot, it will store the item and alert you by saying "ok"
if the code doesn't find an empty slot (if your inventory is completely full) it will alert you by saying "no". It's set to store a pitfall, but you can replace 1566 with the item you want(it's near the bottom of the code)
(spoiler used to shorten this post)
and the source
Do you guys think I'm good now?![]()
Last edited by dragonboy269; 04-28-2009 at 06:20 PM. Reason: shortened the code even more, and fixed up the source so it looks nice
Sorry for posting AGAIN...I wish I could delete all my other threads in the "amateur coding" section (please move them to the trash Maniac)
but I have a question again. I was thinking of making a real-time acre editor. At first I was just gonna make it be a cycler, where I press an activator to add a certain amount then press something else to move to the next address. However, it'd be a lot easier if I could just type the value I want. But, I don't know how to get the right value that way, because for example if you type "1a" on the chat keyboard, it'll be equal to 361b...
Also, I understand practically everything now, although I'm not sure when you'd need to use a logical shift (like lsl)
At least, that's the only thing I've encountered so far in the TTI source that I didn't understand, and I need to know what it does in order to understand the loop part of TTI.
Edit: here is the cycler source. It isn't fully working yet, but as you can tell it's HUGE. That's why I'd rather be able to write acres using a "text to acre" code of sorts.
Code:removed
Last edited by dragonboy269; 04-28-2009 at 06:20 PM.
lsl, each shift is a multiplication by 2 with the result anded by 0xFFFFFFFF, it's multiplying by 2^immediate.
mov Rd, Rm, lsl #0ximmediate is the syntax for ARM mode.
Say what you mean, mean what you say, and let your actions speak for you.
mov r0, r1, lsl #0x4
(2^4 = 16)
That would multiple r1 by 16 and store it into r0... I really don't see what you don't understand but alright >_>
Say what you mean, mean what you say, and let your actions speak for you.