From a2adda516bdf790651283201a666f253a8bfcc49 Mon Sep 17 00:00:00 2001 From: uruk Date: Mon, 17 Jun 2013 10:38:38 +0200 Subject: AVALANCHE: Initial PtoC output. --- engines/avalanche/shell2.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 engines/avalanche/shell2.cpp (limited to 'engines/avalanche/shell2.cpp') diff --git a/engines/avalanche/shell2.cpp b/engines/avalanche/shell2.cpp new file mode 100644 index 0000000000..053bca9eed --- /dev/null +++ b/engines/avalanche/shell2.cpp @@ -0,0 +1,26 @@ +#include "ptoc.h" + + +/*#include "Dos.h"*/ +#include "graph.h" + +struct infotype { + matrix<128,255,1,8,byte> chars; + string data; +}; +infotype table; +pointer where; +integer gd,gm; +int main(int argc, const char* argv[]) +{pio_initialize(argc, argv); +; + getintvec(0x1f,where); move(where,table,1280); + gd=1; gm=0; initgraph(gd,gm,"c:\\turbo"); + output << "Now in CGA low-res 320x200." << NL; + output << "High ASCII codes work- œœœ °±² ðððññóòôõ" << NL; + output << "And the code is..." << NL; + output << table.data << NL; + output << "Press Enter..." << NL; + input >> NL; closegraph(); +return EXIT_SUCCESS; +} \ No newline at end of file -- cgit v1.2.3