mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Add NES emulator
It's now possible to play classic video game roms with teletypewriters. https://justine.storage.googleapis.com/nesemu.png
This commit is contained in:
parent
4918121810
commit
72b654cb6c
28 changed files with 1888 additions and 79 deletions
|
@ -23,20 +23,26 @@ typedef struct TtyRgb (*rgb2ttyf_f)(__m128);
|
|||
typedef struct TtyRgb (*tty2rgb_f)(struct TtyRgb);
|
||||
typedef struct TtyRgb ttypalette_t[2][8];
|
||||
|
||||
enum TtyQuantizationAlgorithm {
|
||||
kTtyQuantAnsi,
|
||||
kTtyQuantTrue,
|
||||
kTtyQuantXterm256,
|
||||
};
|
||||
|
||||
enum TtyBlocksSelection {
|
||||
kTtyBlocksUnicode,
|
||||
kTtyBlocksCp437,
|
||||
};
|
||||
|
||||
enum TtyQuantizationChannels {
|
||||
kTtyQuantGrayscale = 1,
|
||||
kTtyQuantRgb = 3,
|
||||
};
|
||||
|
||||
struct TtyQuant {
|
||||
enum TtyQuantizationAlgorithm {
|
||||
kTtyQuantAnsi,
|
||||
kTtyQuantTrue,
|
||||
kTtyQuantXterm256,
|
||||
} alg;
|
||||
enum TtyBlocksSelection {
|
||||
kTtyBlocksUnicode,
|
||||
kTtyBlocksCp437,
|
||||
} blocks;
|
||||
enum TtyQuantizationChannels {
|
||||
kTtyQuantGrayscale = 1,
|
||||
kTtyQuantRgb = 3,
|
||||
} chans;
|
||||
enum TtyQuantizationAlgorithm alg;
|
||||
enum TtyBlocksSelection blocks;
|
||||
enum TtyQuantizationChannels chans;
|
||||
unsigned min;
|
||||
unsigned max;
|
||||
setbg_f setbg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue