[18 0D XX 01] - Display status window for character XX, complete with statistics. C1/5B46: C2 31 REP #$31 Flags and direct page manipulation. C1/5B48: 0B PHD C1/5B49: 48 PHA C1/5B4A: 7B TDC C1/5B4B: 69 F0 FF ADC #$FFF0 C1/5B4E: 5B TCD C1/5B4F: 68 PLA C1/5B50: 9B TXY C1/5B51: 84 0E STY $0E X, Y, $0E = arg2 C1/5B53: A9 01 00 LDA #$0001 Argument gathering loop. C1/5B56: 18 CLC C1/5B57: ED CA 97 SBC $97CA C1/5B5A: 50 04 BVC $5B60 C1/5B5C: 10 17 BPL $5B75 C1/5B5E: 80 02 BRA $5B62 C1/5B60: 30 13 BMI $5B75 C1/5B62: 98 TYA C1/5B63: E2 20 SEP #$20 C1/5B65: AE CA 97 LDX $97CA C1/5B68: 9D BA 97 STA $97BA,X C1/5B6B: C2 20 REP #$20 C1/5B6D: EE CA 97 INC $97CA C1/5B70: A9 46 5B LDA #$5B46 C1/5B73: 80 30 BRA $5BA5 End of argument gathering loop. C1/5B75: AD BA 97 LDA $97BA C1/5B78: 29 FF 00 AND #$00FF C1/5B7B: AA TAX A, X = arg1 C1/5B7C: F0 03 BEQ $5B81 If arg1 is zero, jump to code to get the correct value. C1/5B7E: 8A TXA C1/5B7F: 80 05 BRA $5B86 C1/5B81: 20 0A 04 JSR $040A C1/5B84: A5 06 LDA $06 C1/5B86: AA TAX A, X = arg1 C1/5B87: A4 0E LDY $0E C1/5B89: 98 TYA X = arg1; A, Y = arg2. C1/5B8A: C9 01 00 CMP #$0001 C1/5B8D: F0 07 BEQ $5B96 C1/5B8F: C9 02 00 CMP #$0002 C1/5B92: F0 09 BEQ $5B9D C1/5B94: 80 0C BRA $5BA2 If arg2 isn't 0x1 or 0x2, end. C1/5B96: 8A TXA Arg2 = 0x1 case. C1/5B97: 22 2F 95 C1 JSR $C1952F A, X = arg1; Y = arg2. >>> This subroutine contains way too much code to repaste here, but it involves the status window text >>> and a metric assload of character statistic addresses. It would seem probable that this code spawns >>> a status window for character XX, and that YY serves no purpose (excepting that it must be 01). C1/5B9B: 80 05 BRA $5BA2 C1/5B9D: 8A TXA Arg2 = 0x2 case. C1/5B9E: 22 23 EF C3 JSR $C3EF23 A, X = arg1; Y = arg2. >>> C3/EF23: C2 31 REP #$31 >>> Do essentially nothing. >>> C3/EF25: 6B RTL C1/5BA2: A9 00 00 LDA #$0000 A = 0x0 C1/5BA5: 2B PLD C1/5BA6: 60 RTS