1
0
mirror of https://github.com/aap/pdp6.git synced 2026-01-11 23:53:31 +00:00

emu: 340 emulation starting to work

This commit is contained in:
aap 2019-03-20 20:06:36 +01:00
parent 907f93d038
commit eacf915bfb
7 changed files with 5608 additions and 9 deletions

View File

@ -1,4 +1,4 @@
SRC=emu.c apr.c mem.c tty.c pt.c dc.c dt.c netmem.c cmd.c util.c threading.c rtc.c ../tools/pdp6common.c
SRC=emu.c apr.c mem.c tty.c pt.c dc.c dt.c dis340.c netmem.c cmd.c util.c threading.c rtc.c ../tools/pdp6common.c
H=pdp6.h ../tools/pdp6common.h threading.h
# clang
#CFLAGS= -Wno-shift-op-parentheses -Wno-logical-op-parentheses \
@ -7,7 +7,7 @@ CFLAGS= -O3 -Wall -Wno-parentheses -fno-diagnostics-show-caret
#CFLAGS= -g -Wall -Wno-parentheses -fno-diagnostics-show-caret
SDLFLAGS=`sdl2-config --cflags` `pkg-config SDL2_image --cflags`
LIBS=`sdl2-config --libs` `pkg-config SDL2_image --libs` -lpthread
LIBS=`sdl2-config --libs` `pkg-config SDL2_image --libs` -lpthread -lm
pdp6: main_panel.c $(SRC) $(H)

View File

@ -233,6 +233,7 @@ DevDef definitions[] = {
{ DC_IDENT, makedc },
{ DT_IDENT, makedt },
{ DX_IDENT, makedx },
{ DIS_IDENT, makedis },
{ NETMEM_IDENT, makenetmem },
{ nil, nil }
};

1008
emu/dis340.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ mkdev dc dc136
mkdev dt0 dt551
mkdev dx1 dx555
mkdev dx2 dx555
mkdev dis dis340
mkdev fmem fmem162 0
mkdev mem0 moby mem_0
#mkdev cmem0 cmem161C mem_0
@ -25,6 +26,7 @@ connectio ptr apr
connectio ptp apr
connectio dc apr
connectio dt0 apr
connectio dis apr
connectmem fmem 0 apr -1
connectmem mem0 0 apr 0
#connectmem cmem0 0 apr 0

View File

@ -53,8 +53,8 @@ struct SwDigit
SwDigit *next;
};
SDL_Window *window;
SDL_Renderer *renderer;
static SDL_Window *window;
static SDL_Renderer *renderer;
Image*
mustloadimg(const char *path)
@ -860,6 +860,10 @@ threadmain(int argc, char *argv[])
SDL_Init(SDL_INIT_EVERYTHING);
IMG_Init(IMG_INIT_PNG);
void main340(void);
// main340();
// return 0;
if(SDL_CreateWindowAndRenderer(1399, 740, 0, &window, &renderer) < 0)
err("SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError());

4587
emu/mem_0

File diff suppressed because it is too large Load Diff

View File

@ -649,6 +649,13 @@ extern char *dt_ident;
Device *makedt(int argc, char *argv[]);
void dtconn(Dc136 *dc, Dt551 *dt);
#define DIS (0130>>2)
#define DIS_IDENT "dis340"
Device *makedis(int argc, char *argv[]);
extern char *dis_ident;
typedef struct Netmem Netmem;
struct Netmem
{