fork/training-mode-ce
git clone https://git.julia.blue/fork/training-mode-ce
f9241ee
master
1# To be inserted at 0x80005530 2.include "../../Globals.s" 3.include "../../m-ex/Header.s" 4 5############################################# 6.set ID , 31 7.set LoopCount , 30 8.set Name , 29 9 10backup 11 12# Get ID 13mr ID , r3 14# Get Names 15mr Name , r4 16# Init Loop Count 17li LoopCount , 0 18 19SearchStringTable_Loop : 20# Check if we are up to the correct name 21cmpw ID , LoopCount 22beq SearchStringTable_Exit 23# Get string length 24mr r3 , Name 25branchl r12 , strlen 26# Add to current name pointer 27add Name , Name , r3 28addi Name , Name , 1 29# Inc Loop Count 30addi LoopCount , LoopCount , 1 31b SearchStringTable_Loop 32 33SearchStringTable_Exit : 34mr r3 , Name 35restore 36blr 37 38###################################