![]() |
help with no guard
Can someone plz show me what I'm doing wrong I still can't get no guard to work this is my code this is emerald btw it either freezes the game or it resets the game
.text .align 2 .thumb .thumb_func .global noguard AbilityBufferUser: push {r0} ldr r0, .Bank ldrb r0, [r0] mov r1, #0x58 ldr r2, .BattleData mul r0, r1 add r0, r0, r2 ldrb r0, [r0] NoGuardCheckUser: cmp r0, #0x54 ( the place I'm putting my no guard) beq AutoHit AbilityBufferTarget: ldr r0, .Bank add r0, #0x1 ldrb r0, [r0] mul r0, r1 add r0, r0, r2 ldrb r0, [r0] NoGuardCheckTarget: cmp r0, #0x54 ( same as above mentioned) beq AutoHit ToxicCheck: ldr r0, .MoveLoc ldrh r0, [r0] cmp r0, #0x5C bne InvulnerableCheck PoisonCheck: ldr r0, .Bank ldr r0, [r0] mov r1, #0x58 ldr r2, .BattleData mul r0, r1 add r2, r0, r2 ldrb r1, [r0, #1] ldrb r0, [r0, #2] cmp r0, #0x3 beq AutoHit cmp r1, #0x3 beq AutoHit InvulnerableCheck: pop {r0} bl Method lsl r0, r0, #0x18 cmp r0, #0x0 bne Miss Return: ldr r1, .Return bx r1 AutoHit: pop {r0} ldr r1, .Return2 bx r1 Miss: ldr r1, .Return3 bx r1 Method: ldr r1, .MethodLoc bx r1 .align 2 .Bank: .word 0x0202420B .BattleData: .word 0x020240A4 .MoveLoc: .word 0x020241EA .Return: .word 0x08046761 .Return2: .word 0x080469CB .Return3: .word 0x080469D3 .MethodLoc: .word 0x080464AD |
| All times are GMT -8. The time now is 2:23 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.