Rot_VL_M_dft ($F62B)

Rot_VL_Mode ($F61F)

This routine rotates a vector list having the following format:

mode, rel y, rel x,
mode, rel y, rel x,
. . .
. . .
mode, rel y, rel x,
0x01

The A register contains the rotation value, and the X contains a pointer to the vector list. The U register contains a pointer to a buffer into which the transformed points are to be saved.

 

ENTRY:

DP = $C8

A-reg = rotation angle value (Rot_VL_Mode only)

X-reg points to original vector list

U-reg points to rotated vector list

 

EXIT:

X-reg points to next byte after list

U-reg points to next byte after rotated list

D-reg trashed

 

Source