graphic


cls()
clears the current screen

vpoke(VRAM address,value)
writes the value to VRAM

vpeek(VRAM address)
reads the value from VRAM

copy(XDest,YDest,Width,Height,XSrc,YSrc,logical operation value)
copies VRAM to VRAM
logical operation value:
 graphic.SRCIMP
 graphic.SRCAND
 graphic.SRCOR
 graphic.SRCXOR
 graphic.SRCNOT
 graphic.SRCTIMP
 graphic.SRCTAND
 graphic.SRCTOR
 graphic.SRCTXOR
 graphic.SRCTNOT

setpage(draw page,src page)
sets the drawing page and the source page of copy, put, box

page(display page)
changes the display page

page(draw page,src page)
sets the drawing page and the source page of copy, put, box

put(XDest,YDest,Width,Height,src pointer)
copies RAM to VRAM

put_compress(XDest,YDest,Width,Height,src pointer,buffer)
copies compressed data to VRAM

get(XDest,YDest,Width,Height,src pointer)
copies VRAM to RAM

get_sc8(XDest,YDest,Width,Height,src pointer)
copies VRAM to RAM in SCREEN8

color(color numver,R,G,B)
sets the color palette

filvrm(VRAM address,value,length)
fills VRAM with value

box(XDest,YDest,width,height,color)
draws the box

line(X1,Y1,X2,Y2,color)
draws the line

pset(X,Y,color)
draws the point

point(X,Y)
gets color from the point

save(filename,XSrc,YSrc,width,height)
saves the picture to the file

load(filename,XDest,YDest)
loads the picture from the file

vdp(port,value)
writes the value to vdp

vdp(port)
read the value from vdp

colorrestore()
restores the color palette

colorinit()
initilizes the color palette

bload(file)
loads VRAM from the file. Same as BLOAD"...",S in MSX-BASIC

bsave(file,start vram address,end vram address)
saves VRAM to the file. Same as BSAVE"...",from,to,S in MSX-BASIC

back