Prev: 33162 Up: Map Next: 33211
33195: Write Menu Line
Converts a menu line co-ordinate into screen and attribute addresses, then prints the line using Current_MenuAttribute.
Input
HL Menu line co-ordinate
DE Message pointer
Convert the menu line co-ordinate and print the string.
MenuWriteText 33195 PUSH HL Stash the menu line co-ordinate on the stack.
33196 CALL ScreenAddress Call ScreenAddress.
33199 LD A,(24166) Fetch the menu attribute from Current_MenuAttribute.
33202 EX AF,AF' Switch to the shadow AF register.
33203 EXX Switch to the shadow registers.
33204 POP HL Restore the menu line co-ordinate from the stack.
33205 CALL AttributeAddress Call AttributeAddress.
33208 JP PrintString_Loop Jump to PrintString_Loop.
View the equivalent code in;
Prev: 33162 Up: Map Next: 33211