Prev: 818A Up: Map Next: 81BB
81AB: 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 81AB PUSH HL Stash the menu line co-ordinate on the stack.
81AC CALL ScreenAddress Call ScreenAddress.
81AF LD A,($5E66) Fetch the menu attribute from Current_MenuAttribute.
81B2 EX AF,AF' Switch to the shadow AF register.
81B3 EXX Switch to the shadow registers.
81B4 POP HL Restore the menu line co-ordinate from the stack.
81B5 CALL AttributeAddress Call AttributeAddress.
81B8 JP PrintString_Loop Jump to PrintString_Loop.
View the equivalent code in;
Prev: 818A Up: Map Next: 81BB