Prev: 48242 Up: Map Next: 48260
48246: Script routine: (14) Set Berk's facing-right flag, and reset his facing-into-screen and facing-left flags
Used by the routine at 48096.
Input
B (Entry at 48248 only) Combination of flags to (re)set
IX Address of complex state data (current level) for Berk
48246 LD B,8 Prepare to set Berk's facing-right flag, and reset his facing-into-screen and facing-left flags
This entry point is used by the routines at 48234, 48238 and 48242.
48248 LD A,(IX+9) Load A with Berk's flags...
48251 AND 241 ...clearing facing-into-screen, facing-left and facing-right flags
48253 ADD A,B Combine with flags in B...
48254 LD (IX+9),A ...and store
48257 JP 48096 Advance HL to next script instruction and execute
Prev: 48242 Up: Map Next: 48260