wm: 5552

Download patch

ref: 218be5c0d3083dfaa7c48ebc02c78cb22bc48cd3
parent: 574330802775a8417de895c924bf454807295150
author: mkf <mkf@cloud9p.org>
date: Thu Jul 4 05:36:47 EDT 2024

5552.h: add outfd (for -o) and minor fixes

--- a/5552.h
+++ b/5552.h
@@ -11,7 +11,7 @@
 	ERR,
 
 	SFLAG,
-}
+};
 
 /* ops */
 enum
@@ -53,13 +53,13 @@
 }
 
 /* devices */
-enum
+typedef enum
 {
 	REG,
 	MEM,
 	SIO,
 	TP0,
-};
+}Dev;
 
 /* states */
 typedef enum
@@ -86,10 +86,11 @@
 	int pc;
 }Label;
 
+
 extern Op program[];
 extern Label labels[];
+extern int outfd;
 
-void panic(char *msg);
 
 /* emulator */
 int mach_drd(Word dev, Word src, Word dst);