Vectrex System - Hardware and Periphery Vextrex Games - Modules and Cartridges Vectrex History The last Vectrex news... The museum´s shop Vectrex Links - Info and Collectors pages

Rise_Run_Angle ($F593)

Given a (rise,run) pair, this routine calculates the angle which corresponds to that (rise,run) pair. The returned angle is relative to the x-axis (+ is CCW), so to convert it to a Vectrex angle (relative to the y-axis, + is CCW), you must subtract the number 0x10 (90 degrees) from the returned value.

 

ENTRY:

DP = $C8

A-reg = rise value

B-reg = run value

 

EXIT:

A-reg = the angle from the x-axis

B-reg = the angle from the x-axis

All other registers preserved.

 

Source


 


Vectrex Last Minute RSS

Related Links and sources

Please note

The Museums Staff can not answer any programming related questions. If you have extra info about this page, if you noticed errors, please help to maintain this site. Please send us the information you have.

 

 

Back to Programming Docs Index
 
 

vectrexmuseum.com