; -------------------------------------------------------------- ; UPDATE SAT BUFFER ; Generate vpos, hpos and cc data for the sprites that make up ; each of the cars (player and Ash). ; Generate sat buffer data from player's x,y coordinates. upbuf ld a,(ply) ; load player's current y-coordinate. ld hl,plrvp ; point to sat buffer. call cary ; refresh buffer according to y. ld a,(plx) ; load player's current x-coordinate. ld hl,plrhp ; point to sat buffer. call carx ; refresh buffer according to x. ; Generate sat buffer data from Ash's x,y coordinates. ld a,(ashy) ; load Ash's current y-coordinate. ld hl,ashvp ; point to sat buffer. call cary ; refresh buffer according to y. ld a,(ashx) ; load Ash's current x-coordinate. ld hl,ashhp ; point to sat buffer. call carx ; refresh buffer according to x. ret