Prev: 53861 Up: Map Next: 53886
53871: Update index of character whose turn it is to be updated
Used by the routine at 53731.
Output
A Updated index of character whose turn it is to be updated
53871 LD A,(23455) Increment index of character whose turn it is to be updated...
53874 INC A ...
53875 LD (23455),A ...
53878 CP 12 If new character index is not 12...
53880 RET NZ ...then return
53881 XOR A Set new character index to 0, as there are only 12 characters...
53882 LD (23455),A ...
53885 RET Return
Prev: 53861 Up: Map Next: 53886