Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:821FDFA8 # void __cdecl Cbuf_AddText(int localClientNum, const char *text)
- .text:821FDFA8 _Cbuf_AddText__YAXHPBD_Z: # CODE XREF: CG_VoiceChat_f+CCp
- .text:821FDFA8 # CG_TeamVoiceChat_f+CCp ...
- .text:821FDFA8 localClientNum = bl
- .text:821FDFA8 text = ah
- .text:821FDFA8 mr r9, r4
- .text:821FDFAC lis r11, ((cmd_textArray+0x10000)@h)
- .text:821FDFB0 li r10, 0
- .text:821FDFB4 addi r11, r11, -0x48EC # cmd_textArray
- .text:821FDFB8 lbz r8, 0(r9)
- .text:821FDFBC cmplwi cr6, r8, 0
- .text:821FDFC0 slwi r8, r3, 1
- .text:821FDFC4 add r8, r3, r8
- .text:821FDFC8 slwi r8, r8, 2
- .text:821FDFCC add r7, r8, r11
- .text:821FDFD0 beq cr6, loc_821FDFE4
- .text:821FDFD4
- .text:821FDFD4 loc_821FDFD4: # CODE XREF: Cbuf_AddText(int,char const *)+38j
- .text:821FDFD4 addi r10, r10, 1
- .text:821FDFD8 lbzx r11, r10, r9
- .text:821FDFDC cmplwi cr6, r11, 0
- .text:821FDFE0 bne cr6, loc_821FDFD4
- .text:821FDFE4
- .text:821FDFE4 loc_821FDFE4: # CODE XREF: Cbuf_AddText(int,char const *)+28j
- .text:821FDFE4 lwz r6, 8(r7)
- .text:821FDFE8 lwz r11, 4(r7)
- .text:821FDFEC add r8, r6, r10
- .text:821FDFF0 cmpw cr6, r8, r11
- .text:821FDFF4 blt cr6, loc_821FE008
- .text:821FDFF8 lis r11, aCbuf_addtextOv@h # "Cbuf_AddText: overflow\n"
- .text:821FDFFC li r3, 0x10 # channel
- .text:821FE000 addi r4, r11, aCbuf_addtextOv@l # "Cbuf_AddText: overflow\n"
- .text:821FE004 b _Com_Printf__YAXHPBDZZ # Com_Printf(int,char const *,...)
- .text:821FE008 # ---------------------------------------------------------------------------
- .text:821FE008
- .text:821FE008 loc_821FE008: # CODE XREF: Cbuf_AddText(int,char const *)+4Cj
- .text:821FE008 lwz r8, 0(r7)
- .text:821FE00C addi r11, r10, 1
- .text:821FE010 add r8, r8, r6
- .text:821FE014 cmplwi cr6, r11, 0
- .text:821FE018 beq cr6, loc_821FE038
- .text:821FE01C
- .text:821FE01C loc_821FE01C: # CODE XREF: Cbuf_AddText(int,char const *)+8Cj
- .text:821FE01C lbz r6, 0(r9)
- .text:821FE020 addi r11, r11, -1
- .text:821FE024 addi r9, r9, 1
- .text:821FE028 cmplwi cr6, r11, 0
- .text:821FE02C stb r6, 0(r8)
- .text:821FE030 addi r8, r8, 1
- .text:821FE034 bne cr6, loc_821FE01C
- .text:821FE038
- .text:821FE038 loc_821FE038: # CODE XREF: Cbuf_AddText(int,char const *)+70j
- .text:821FE038 lwz r11, 8(r7)
- .text:821FE03C add r11, r11, r10
- .text:821FE040 stw r11, 8(r7)
- .text:821FE044 blr
- .text:821FE044 # End of function Cbuf_AddText(int,char const *)
- .text:821FE044
- .text:821FE048 # .rename _Cbuf_InsertText__YAXHPBD_Z, "?Cbuf_InsertText@@YAXHPBD@Z"
Add Comment
Please, Sign In to add comment