1
0
mirror of https://github.com/aap/pdp6.git synced 2026-05-05 07:33:40 +00:00

emu: rewrote 551, still rough

This commit is contained in:
aap
2019-02-24 20:41:25 +01:00
parent 7935d618f0
commit 4909e1bfd9
13 changed files with 869 additions and 263 deletions

View File

@@ -32,9 +32,10 @@ netmemcycle(void *dev)
}
len = buf[0]<<8 | buf[1];
if(len > 9){
fprintf(stderr, "netmem botch, closing\n");
fprintf(stderr, "netmem botch(%d), closing\n", len);
close(nm->fd);
nm->fd = -1;
return;
}
memset(buf, 0, sizeof(buf));
readn(nm->fd, buf, len);
@@ -96,9 +97,6 @@ makenetmem(int argc, char *argv[])
memset(nm, 0, sizeof(Netmem));
nm->dev.type = netmem_ident;
nm->dev.name = "";
nm->dev.attach = nil;
nm->dev.ioconnect = nil;
nm->dev.next = nil;
// TODO: don't hardcode;
apr = getdevice("apr");