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

Print_Ships_x ($F391)

Print_Ships ($F393)

This routine displays the number of ships passed in the B register followed by a minus sign and the ship icon character passed in the A register at the (y,x) coordinates passed in the X register. If the B-register > 9, then the infinity symbol is displayed.

Note: This routine uses bytes at a negative offset from the stack as temporary storage, so hopefully an IRQ won't happen until the string is finished bring printed!

 

ENTRY:

DP = $D0

A-reg = ship icon character

B-reg = number of ships

X-reg = (y,x) coordinates (Print_Ships only)

X-reg points to (y,x) coordinates (Print_Ships_x only)

 

EXIT:

D-reg, X-reg, U-reg trashed

 

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