1
0
mirror of https://github.com/rricharz/Tek4010.git synced 2026-04-14 23:58:31 +00:00

forgot to move mode over to tek4010.c

This commit is contained in:
¨Rene Richarz
2019-04-12 11:20:44 +02:00
parent b4ad52f07a
commit 42919cc015
3 changed files with 22 additions and 28 deletions

BIN
tek4010

Binary file not shown.

View File

@@ -26,8 +26,6 @@
#define DEBUG 0 // print debug info
#define TODO (long)(8.0 * efactor * efactor) // draw multiple objects until screen updates
#define _GNU_SOURCE
@@ -46,7 +44,28 @@
#include "main.h"
#include "tube.h"
extern int mode, savemode;
// mode handles the current state of the emulator:
//
// mode 0 alpha mode
//
// mode 1 expecting address byte of dark mode (move to) address
// mode 2 expecting second byte of dark mode (move to) address
// mode 3 expecting third byte of dark mode (move to) address
// mode 4 expecting fourth byte of dark mode (move to) address
// mode 5 expecting first byte of persistent vector end point address
// mode 6 expecting second byte of persistent vector end point address
// mode 7 expecting third byte of persistent vector end point address
// mode 8 expecting fourth byte of persistent vector end point address
//
// mode 30 expecting escape sequence, escape code received
// mode 31 received in ANSI escape sequence, escape sequence continues if next char is digit
//
// mode 40 incremental plot mode; is ignored until exit from incremental plot received
// mode 50 special point plot mode; not yet implemented
// mode 101 ignore until group separator
int mode, savemode;
extern int leftmargin;
static long startPaintTime;

25
tube.c
View File

@@ -68,11 +68,8 @@ int refresh_interval; // after this time in msec next refresh is done
int showCursor; // set of cursor is shown (not set in graphics mode)
int isBrightSpot = 0; // set if there is currently a bright spot on the screen
int count = 0;
int xlast, ylast;
enum LineType ltype;
double dashset[] = {2,6,2,2,6,3,3,3,6,6};
@@ -94,28 +91,6 @@ static long characterInterval = 0;
long startPaintTime;
// mode handles the current state of the emulator:
//
// mode 0 alpha mode
//
// mode 1 expecting address byte of dark mode (move to) address
// mode 2 expecting second byte of dark mode (move to) address
// mode 3 expecting third byte of dark mode (move to) address
// mode 4 expecting fourth byte of dark mode (move to) address
// mode 5 expecting first byte of persistent vector end point address
// mode 6 expecting second byte of persistent vector end point address
// mode 7 expecting third byte of persistent vector end point address
// mode 8 expecting fourth byte of persistent vector end point address
//
// mode 30 expecting escape sequence, escape code received
// mode 31 received in ANSI escape sequence, escape sequence continues if next char is digit
//
// mode 40 incremental plot mode; is ignored until exit from incremental plot received
// mode 50 special point plot mode; not yet implemented
// mode 101 ignore until group separator
int mode, savemode;
int leftmargin;
int hDotsPerChar;