v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
Data Structures | Macros | Functions
textmode.h File Reference

6502 Reference Platform Virtual Terminal More...

#include <curses.h>
#include <v6502/mem.h>

Go to the source code of this file.

Data Structures

struct  v6502_textmode_video
 Virtual Text-Mode Hardware Object. More...
 

Macros

#define textMode_characterMemoryStart   0x2000
 The start address of character data in memory.
 
#define textMode_attributeMemoryStart   0x3000
 The start address of attribute data in memory.
 
#define textMode_memoryCeiling   0x4000
 The upper bounds of memory reserved for terminal hardware.
 

Functions

v6502_textmode_videotextMode_create (v6502_memory *mem)
 Create v6502_textmode_video.
 
void textMode_destroy (v6502_textmode_video *vid)
 Destroy v6502_textmode_video.
 
void textMode_rest (v6502_textmode_video *vid)
 Put virtual video into "rest" mode, where the hosting terminal is restored, but the video data is preserved and will be redisplayed on next access.
 
void textMode_refreshVideo (v6502_textmode_video *vid)
 Force a fullscreen refresh.
 
void textMode_updateCharacter (v6502_textmode_video *vid, int x, int y)
 Refresh a single character of the output (When memory is trapped, this is called automatically on memory interaction)
 
uint16_t textMode_addressForLocation (int x, int y)
 Convert x, y coordinates to the address in memory that is expected to hold the character.
 

Detailed Description

6502 Reference Platform Virtual Terminal