Prev: 55686 Up: Map Next: 55739
55721: Initialise Sprite
Used by the routines at PrintSprite and PrintSprite_Mirrored.
Input
A Sprite ID
BC Screen co-ordinates
InitialiseSprite 55721 CALL GetSpriteInfo Call GetSpriteInfo.
55724 LD A,C A=C.
55725 ADD A,(HL) A+=*HL.
55726 EX AF,AF' Exchange the AF register with the shadow AF register.
55727 INC HL Increment HL by one.
55728 LD A,B A=B.
55729 ADD A,(HL) A+=*HL.
55730 INC HL Increment HL by one.
55731 LD E,(HL) E=*HL.
55732 INC HL Increment HL by one.
55733 LD D,(HL) D=*HL.
55734 INC HL Increment HL by three.
55735 INC HL
55736 INC HL
55737 EXX Switch to the shadow registers.
55738 RET Return.
Prev: 55686 Up: Map Next: 55739