E:/Projects/AvrLib/include/VBIOS.h File Reference

#include "termlib.h"

Include dependency graph for VBIOS.h:

Go to the source code of this file.

Defines

#define VIDEO_INT   0x10
#define KB_INT   0x16
#define CUR_SIZE   0x1
#define SET_POSN   0x2
#define READ_POSN   0x3
#define SCROLL_UP   0x6
#define SCROLL_DOWN   0x7
#define READ_CHAR   0x8
#define WRITE   0x9
#define WRITE_TTY   0xe
#define GET_VMODE   0xf
#define VB_GETPAGE()   _Vbios( GET_VMODE, 0, 0, 0, 0, "bh")
#define VB_INCHA()   _Vbios( READ_CHAR, 0, VB_GETPAGE(), 0, 0, "ax")
#define VB_GETCUR()   _Vbios( READ_POSN, 0, VB_GETPAGE(), 0, 0, "dx")
#define VB_CURSIZE(t, b)   _Vbios( CUR_SIZE, 0,0,((t)<<8)|(b),0, "ax")
#define VB_OUTCHA(c)   _Vbios( WRITE, (c)&0xff,((c)>>8)&0xff, 1, 0, "ax")
#define VB_REPLACE(c)   VB_OUTCHA( (c & 0xff) | (VB_INCHA() & ~0xff) )
#define VB_SETCUR(posn)   _Vbios( SET_POSN, 0, VB_GETPAGE() << 8, 0,(posn), "ax")
#define VB_CTOYX(y, x)   VB_SETCUR( ((y) << 8) | ((x) & 0xff) )
#define VB_SCROLL(xl, xr, yt, yb, amt, attr)
#define VB_CLRS(at)   VB_SCROLL( 0, 79, 0, 24, 25, (at))
#define VB_CLR_REGION(l, r, t, b, at)   VB_SCROLL( (l),(r),(t),(b),((b)-(t))+1,(at))
#define VB_BLOCKCUR()   VB_CURSIZE( 0, vb_iscolor() ? 7 : 12 )
#define VB_NORMALCUR()   ( vb_iscolor() ? VB_CURSIZE(6,7) : VB_CURSIZE(11,12) )
#define VB_PUTCHAR(c)   vb_putc( (c), NORMAL )


Define Documentation

#define CUR_SIZE   0x1

Definition at line 9 of file VBIOS.h.

#define GET_VMODE   0xf

Definition at line 17 of file VBIOS.h.

#define KB_INT   0x16

Definition at line 8 of file VBIOS.h.

#define READ_CHAR   0x8

Definition at line 14 of file VBIOS.h.

#define READ_POSN   0x3

Definition at line 11 of file VBIOS.h.

#define SCROLL_DOWN   0x7

Definition at line 13 of file VBIOS.h.

#define SCROLL_UP   0x6

Definition at line 12 of file VBIOS.h.

#define SET_POSN   0x2

Definition at line 10 of file VBIOS.h.

 
#define VB_BLOCKCUR (  )     VB_CURSIZE( 0, vb_iscolor() ? 7 : 12 )

Definition at line 65 of file VBIOS.h.

#define VB_CLR_REGION ( l,
r,
t,
b,
at   )     VB_SCROLL( (l),(r),(t),(b),((b)-(t))+1,(at))

Definition at line 63 of file VBIOS.h.

#define VB_CLRS ( at   )     VB_SCROLL( 0, 79, 0, 24, 25, (at))

Definition at line 62 of file VBIOS.h.

#define VB_CTOYX ( y,
 )     VB_SETCUR( ((y) << 8) | ((x) & 0xff) )

Definition at line 54 of file VBIOS.h.

#define VB_CURSIZE ( t,
 )     _Vbios( CUR_SIZE, 0,0,((t)<<8)|(b),0, "ax")

Definition at line 50 of file VBIOS.h.

 
#define VB_GETCUR (  )     _Vbios( READ_POSN, 0, VB_GETPAGE(), 0, 0, "dx")

Definition at line 49 of file VBIOS.h.

 
#define VB_GETPAGE (  )     _Vbios( GET_VMODE, 0, 0, 0, 0, "bh")

Definition at line 47 of file VBIOS.h.

 
#define VB_INCHA (  )     _Vbios( READ_CHAR, 0, VB_GETPAGE(), 0, 0, "ax")

Definition at line 48 of file VBIOS.h.

 
#define VB_NORMALCUR (  )     ( vb_iscolor() ? VB_CURSIZE(6,7) : VB_CURSIZE(11,12) )

Definition at line 66 of file VBIOS.h.

#define VB_OUTCHA (  )     _Vbios( WRITE, (c)&0xff,((c)>>8)&0xff, 1, 0, "ax")

Definition at line 51 of file VBIOS.h.

#define VB_PUTCHAR (  )     vb_putc( (c), NORMAL )

Definition at line 67 of file VBIOS.h.

#define VB_REPLACE (  )     VB_OUTCHA( (c & 0xff) | (VB_INCHA() & ~0xff) )

Definition at line 52 of file VBIOS.h.

#define VB_SCROLL ( xl,
xr,
yt,
yb,
amt,
attr   ) 

Value:

_Vbios( \
                                ((amt) < 0) ? SCROLL_DOWN : SCROLL_UP, \
                                abs(amt), (attr) << 8, ((yt) << 8) | (xl), \
                                                       ((yb) << 8) | (xr), "ax"\
                                                   )

Definition at line 56 of file VBIOS.h.

#define VB_SETCUR ( posn   )     _Vbios( SET_POSN, 0, VB_GETPAGE() << 8, 0,(posn), "ax")

Definition at line 53 of file VBIOS.h.

#define VIDEO_INT   0x10

Definition at line 7 of file VBIOS.h.

#define WRITE   0x9

Definition at line 15 of file VBIOS.h.

#define WRITE_TTY   0xe

Definition at line 16 of file VBIOS.h.


Generated on Sun Aug 31 13:30:53 2008 for FrankenRTOS by  doxygen 1.5.6