The text of a manual · part 11 of 19
PDT 3200 Run-Time Library Reference Manual: Chapter 2 Function Reference, pages 89 to 98
Pages 89 to 98 of 168, from PDT 3200 Run-Time Library Reference Manual
The original document is the PDF (949 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol PDT-3200
Page 89
Chapter 2: Function Reference
BIOS_Load8x16Font p_bios.h Syntax void BIOS_Load8x16Font(void);
Description Loads the internal 8x16 font as the new active font.
Parameters None.
Returns None.
Sample See BIOS_Load6x8Font().
2-61
Page 90
PDT 3200 Run-Time Library Reference Manual
BIOS_Load8x8Font p_bios.h Syntax void BIOS_Load8x8Font(void);
Description Loads the internal 8x8 font as the new active font.
Parameters None.
Returns None.
Sample See BIOS_Load6x8Font().
2-62
Page 91
Chapter 2: Function Reference
BIOS_LoadUserFont p_bios.h Syntax void BIOS_LoadUserFont(UINT CharWidth, UINT CharHeight, UCHAR far *FontTable);
Description Loads a user-deÞned font table as the new active font. The font table should be organized into 256 consecutive entries, with each entry consisting of the bytes that make up the bitmap for a character. Each byte comprises a single scan line in the bitmap. Only a pointer to the font table is retained by the BIOS, and therefore no steps are taken to ensure that the font table is intact when it is used. The active font may be changed only while in a text mode (P_VMODE_TEXT_...).
Parameters CharWidth CharHeight FontTable
Pixel width for each character. This is limited to 6 or 8. Pixel height for each character. This is limited to 8 or 16. Address of font table.
Returns None.
Sample None.
2-63
Page 92
PDT 3200 Run-Time Library Reference Manual
BIOS_MoveViewportDown p_bios.h Syntax void BIOS_MoveViewportDown(UCHAR Rows);
Description Moves the viewport down by the speciÞed number of rows. The top line(s) of the display scrolls off the screen; more line(s) become visible at the bottom. Vertical panning must be enabled using BIOS_SetViewportMode() for this function to have any effect. A call to BIOS_MoveViewportDown() when the viewport is at the bottom of the logical screen has no effect.
Parameters Rows
Number of rows to move viewport.
Returns None.
Sample #include <stdio.h> #include "p_bios.h" void MoveViewport() { char ch; puts("Move the viewport \nwith IJKL keys. \n" Press ESC to stop."); while (1) { ch = getch(); switch (toupper(ch)) { case 27: return; case 'I': BIOS_MoveViewportUp(1); break; case 'K': BIOS_MoveViewportDown(1); break; case 'J': BIOS_MoveViewportLeft(1); break; case 'L': BIOS_MoveViewportRight(1); break; } } }
2-64
Page 93
Chapter 2: Function Reference
BIOS_MoveViewportLeft p_bios.h Syntax void BIOS_MoveViewportLeft(UCHAR Columns);
Description Moves the viewport left by the speciÞed number of columns. The rightmost column(s) of the display scrolls off the screen; more column(s) become visible at the left. Horizontal panning must be enabled using BIOS_SetViewportMode() for this function to have any effect. A call to BIOS_MoveViewportLeft() when the viewport is at the left of the logical screen has no effect.
Parameters Columns
Number of columns to move viewport.
Returns None.
Sample See BIOS_MoveViewportDown().
2-65
Page 94
PDT 3200 Run-Time Library Reference Manual
BIOS_MoveViewportRight p_bios.h Syntax void BIOS_MoveViewportRight(UCHAR Columns);
Description Moves the viewport right by the speciÞed number of columns. The leftmost column(s) of the display scrolls off the screen; more column(s) become visible at the right. Horizontal panning must be enabled using BIOS_SetViewportMode() for this function to have any effect. A call to BIOS_MoveViewportRight() when the viewport is at the right of the logical screen has no effect.
Parameters Columns
Number of columns to move viewport.
Returns None.
Sample See BIOS_MoveViewportDown().
2-66
Page 95
Chapter 2: Function Reference
BIOS_MoveViewportUp p_bios.h Syntax void BIOS_MoveViewportUp(UCHAR Rows);
Description Moves the viewport up by the speciÞed number of rows. The bottom line(s) of the display scrolls off the screen; more line(s) become visible at the top. Vertical panning must be enabled using BIOS_SetViewportMode() for this function to have any effect. A call to BIOS_MoveViewportUp() when the viewport is at the top of the logical screen has no effect.
Parameters Rows
Number of rows to move viewport.
Returns None.
Sample See BIOS_MoveViewportDown().
2-67
Page 96
PDT 3200 Run-Time Library Reference Manual
BIOS_ReadPixel p_bios.h Syntax UCHAR BIOS_ReadPixel(UINT DisplayPage, UINT Row, UINT Column);
Description Returns the pixel color at the speciÞed coordinates on the speciÞed display page. Pixels may be read only in one of the graphics modes (P_VMODE_GRAPHICS_...).
Parameters DisplayPage Video display page of cursor to check. P_ACTIVE_PAGE indicates the current active display page. Row Graphics x coordinate for pixel to read. Column Graphics y coordinate for pixel to read.
Returns Pixel Color
Sample None.
2-68
The unit has no color display capability. However, if a color is used to write a pixel, that color code is preserved and returned by this function.
Page 97
Chapter 2: Function Reference
BIOS_RefreshDisplay p_bios.h Syntax void BIOS_RefreshDisplay(void);
Description Forces the display to be redrawn based on the contents of video RAM. The unitÕs video memory is nonstandard in two ways: it is not located at the expected memory range beginning at 0B0000h and it is not used by hardware to automatically refresh the screen. The memory range on the unit is from 0A0000h to 0A4000h. This function provides a manual refresh to replace the typical hardware refresh available on PCs.
Parameters None.
Returns None.
Sample None.
2-69
Page 98
PDT 3200 Run-Time Library Reference Manual
BIOS_ScrollPageDown p_bios.h Syntax void BIOS_ScrollPageDown(UINT Lines, UINT Attrib, UINT TRow, UINT LCol, UINT BRow, UINT RCol);
Description Scrolls the speciÞed window on the active video page down. The area within the speciÞed window is scrolled down by the requested number of lines. Text that is scrolled beyond the bottom of the window is lost. The new lines that appear at the top of the window are Þlled with spaces carrying the Attrib speciÞed.
Parameters Lines Attrib
TRow LCol BRow RCol
Number of lines to scroll window. Screen attribute that is to be written to the screen as the screen is being scrolled. P_ATT_NORM speciÞes a normal white-on-black display attribute. P_ATT_INVERSE speciÞes a reverse-video (black-on-white) display attribute. Top line of window to scroll. Left column of window to scroll. Bottom line of window to scroll. Right column of window to scroll.
Returns None.
Sample void AlternateClearScreen(void) { UCHAR scanCode, ch; // You can clear the screen with the scrolling // functions. BIOS_ScrollPageDown (25, P_ATT_NORM, 0, 0, 24, 79); while (!BIOS_GetKeyStatus(&scanCode, &ch)); BIOS_KeyboardReadChar(&scanCode); }
2-70