StuBS
textmode.cc File Reference
#include "machine/textmode.h"
#include "machine/ioport.h"
#include "utils/math.h"
Include dependency graph for textmode.cc:

Classes

struct  Cursor.__unnamed51__
 

Enumerations

enum  RegisterIndex {
  CURSOR_START = 10 ,
  CURSOR_END = 11 ,
  START_ADDRESS_HIGH = 12 ,
  START_ADDRESS_LOW = 13 ,
  CURSOR_HIGH = 14 ,
  CURSOR_LOW = 15
}
 Register (for index_port) More...
 

Constants

static IOPort index_port (0x3d4)
 Graphic card register selection.
 
static IOPort data_port (0x3d5)
 Read/Write selected register.
 

Class Documentation

◆ Cursor.__unnamed51__

struct Cursor.__unnamed51__
Class Members
uint16_t low: 8
uint16_t high: 6
uint16_t __pad0__: 2

Enumeration Type Documentation

◆ RegisterIndex

Register (for index_port)

Enumerator
CURSOR_START 

Control the cursor (blink timing and start scanline)

CURSOR_END 

Control the cursors end scanline.

START_ADDRESS_HIGH 

Base offset address for output (high)

START_ADDRESS_LOW 

Base offset address for output (low)

CURSOR_HIGH 

Cursor offset address (high)

CURSOR_LOW 

Cursor offset address (low)

Variable Documentation

◆ index_port

IOPort index_port(0x3d4) ( 0x3d4  )
static

Graphic card register selection.

◆ data_port

IOPort data_port(0x3d5) ( 0x3d5  )
static

Read/Write selected register.