• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Z
Reaction score
9

Profile posts Latest activity Postings About

  • Mine's slightly different. You've left out a check so that it doesn't go over the max HP. This is just for the first Pokemon...
    push {r0-r3, lr}
    ldr r0, .CurrentHP @Load Current HP
    ldrh r1, [r0] @Load the amount at current
    ldr r2, .MaxHP @load Max
    ldrh r3, [r2] @Load the amount at Max
    add r1, #20 @add 20 to current
    cmp r3, r1 @Compare New current to max
    blt .Copy @if Max < Current, jump
    strh r1, [r0] @store current to location
    pop {r0-r3, pc}
    bx lr @I saw this in examples... So I thought I'd add it. (I should try it without it)

    .Copy:
    strh r3, [r0] @Copy Max to Current
    pop {r0-r3,pc}
    bx lr @same as before.

    I've left out addresses obviously.
    And the ASM would take up less room than a script wouldn't it? The loading of the two bytes from the HP would take 12 bytes instead of the two from an ASM routine. And likewise with storing. This routine is only about 30-40 bytes while if I tried to write a script for it, it would easily pass that. But I guess it's still useful for little things.
    Yeah that's pretty much it, get pointers, add values, compare if it's past MaxHP. And that's about all.
    Well, I'm just writing up some things for my hack. Right now I'm going to try and get a happiness rating to show out of 255. The problem is it involves xor-ing things, and I need to read up on using 'eor'.
    When I was writing up a plan for my hack I included things that weren't possible to me. I just wrote down exactly what I wanted the game to be like. So I'm just trying to get some of those things into the game. That could be something you could do for ideas.
    Hey ZodiacDaGreat. :)
    How's all the ASM stuff going? I'm feel like I've gotten the hang of it all. I just wrote a fully working routine that heals your Pokemon by a designated amount. (Something for my hack)
    Are you working on anything interesting at the moment?
    no problem. yeah. started learning vb a few days ago from swampert. he seems to be impressed at the short amount of time it took me to grasp vb. i'm trying to keep all the programmers here on my friend list. who knows. maybe we can make one huge group of programmers instead of all of the individual groups here.
    Huh? What tutorial? The video?
    The ASM routine wasn't found by me, so I don't want to give it out really readily. Plus isn't it about time I get greedy with what I share and what I don't? :P
    Sorry to bother you but can you check my latest post in the tutorial, if you dont want to its cool, I just dont get why its doin what its doing!
  • Loading…
  • Loading…
  • Loading…
Back
Top