Prev: 34864 Up: Map Next: 34903
34883: Update current character based upon selection made in menu
Used by the routine at 35141.
Input
A ASCII code of letter corresponding to a character listed in a character-selection menu (e.g. "B" is second character)
34883 LD HL,23464 Point HL at list of indices of characters in current room
34886 SUB 65 Subtract 65 (ASCII code for "A")
34888 LD E,A Load remainder (i.e. index of selected item in menu) into DE...
34889 LD D,0 ...
34891 ADD HL,DE Add this as offset to table of characters in current room to identify one of those as the character of interest
34892 LD A,(HL) Load index of this character into A
34893 LD (30615),A Modify instruction at 30614 to set the Current Character
This entry point is used by the routines at 30602 and 35293.
34896 LD DE,34903 Point DE to code to print short name of Current Character...
34899 CALL 38693 ...and print in command summary window at bottom of screen
34902 RET Return
Prev: 34864 Up: Map Next: 34903