c128lib Common
Various common functionalities.
Loading...
Searching...
No Matches
video.asm File Reference

Functions

macro MoveCursor (xPos, yPos)
 
macro PrintString (stringAddress)
 
macro PrintStringWithLength (stringAddress, length)
 

Function Documentation

◆ MoveCursor()

macro MoveCursor ( xPos ,
yPos  )

Move cursor to specified coordinates inside current screen. Can be used on 40 columns or 80 columns screen.

Parameters
xPosx position on screen
yPosy position on screen
Remarks
Registers .X and .Y will be modified. Flags N, Z and C will be affected.
Note
Use c128lib_MoveCursor in video-global.asm
Since
0.6.0

◆ PrintString()

macro PrintString ( stringAddress )

Prints string in current cursor position. Can be used on 40 columns or 80 columns screen.

Parameters
stringAddressAddress of string to print
Remarks
Registers .A and .X will be modified. Flags N, Z and C will be affected.
Note
String should be null termineted. If not, it will stop after 255 chars.
Use c128lib_PrintString in video-global.asm
Since
0.6.0

◆ PrintStringWithLength()

macro PrintStringWithLength ( stringAddress ,
length  )

Prints string in current cursor position. Can be used on 40 columns or 80 columns screen.

Parameters
stringAddressAddress of string to print
lengthLength of string to print
Remarks
Registers .A and .X will be modified. Flags N, Z and C will be affected.
Note
String should be null termineted. If not, it will stop after 255 chars.
Use c128lib_PrintString in video-global.asm
Since
0.6.0