Index: misc/proto.c
===================================================================
--- misc/proto.c	(revision d21fc6f4b3d623f744609fbd36db1ab18c6bdca0)
+++ misc/proto.c	(revision d18a473a1bebff676a7815ea3902d5de01a2a884)
@@ -120,5 +120,5 @@
 }
 
-void GLCplot(uint16_t x, uint16_t y, uint16_t val)
+void GLCplot(int16_t x, int16_t y, int16_t val)
 {
 }
@@ -140,13 +140,13 @@
 }
 
-void objclr(uint16_t obj)
-{
-}
-
-void objoff(uint16_t obj, uint16_t line, uint16_t num)
-{
-}
-
-void objon(uint16_t obj, uint16_t line, uint16_t num)
+void objclr(int16_t obj)
+{
+}
+
+void objoff(int16_t obj, int16_t line, int16_t num)
+{
+}
+
+void objon(int16_t obj, int16_t line, int16_t num)
 {
 }
@@ -156,5 +156,5 @@
 }
 
-void procpfl(uint16_t trig)
+void procpfl(int16_t trig)
 {
 }
@@ -182,5 +182,5 @@
 }
 
-uint16_t setipl(uint16_t arg)
+int16_t setipl(int16_t arg)
 {
     return 0;
@@ -241,9 +241,9 @@
 }
 
-void vbank(uint16_t b)
-{
-}
-
-void vclrav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len)
+void vbank(int16_t b)
+{
+}
+
+void vclrav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len)
 {
 }
@@ -265,13 +265,13 @@
 }
 
-void vputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib)
-{
-}
-
-void vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib)
-{
-}
-
-void vputcv(uint16_t *adr, uint16_t row, uint16_t col, uint8_t chr, uint16_t atr, uint16_t cols)
+void vputa(uint16_t *obase, int16_t row, int16_t col, uint16_t attr)
+{
+}
+
+void vputc(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr)
+{
+}
+
+void vputcv(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr, int16_t cols)
 {
 }
@@ -281,19 +281,19 @@
 }
 
-void vsetav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len)
-{
-}
-
-void vsetcv(uint16_t *adr, uint16_t row, uint16_t col, uint16_t cfb, uint16_t len)
-{
-}
-
-void vsplot4(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t row, uint16_t col, int8_t *str,
-	     uint16_t pitch, uint16_t ht, int16_t cgtab[][256])
-{
-}
-
-void vvputsv(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t bg, uint16_t row, uint16_t col,
-	     int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256])
+void vsetav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len)
+{
+}
+
+void vsetcv(uint16_t *obase, int16_t row, int16_t col, uint16_t fgbg, int16_t len)
+{
+}
+
+void vsplot4(uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str,
+	     int16_t pitch, int16_t ht, int16_t cgtab[][256])
+{
+}
+
+void vvputsv(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col,
+	     int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256])
 {
 }
Index: misc/proto.x
===================================================================
--- misc/proto.x	(revision d21fc6f4b3d623f744609fbd36db1ab18c6bdca0)
+++ misc/proto.x	(revision d18a473a1bebff676a7815ea3902d5de01a2a884)
@@ -55,5 +55,5 @@
 */
 
-extern	void		GLCplot(uint16_t x, uint16_t y, uint16_t val);
+extern	void		GLCplot(int16_t x, int16_t y, int16_t val);
 extern	void		Lo_RAM(void);
 extern	void		VIint(void);
@@ -69,14 +69,14 @@
 extern	void		jumpto(void *addr);
 extern	void		longjmp(struct JMP_BUF *env, int16_t val);
-extern	void		objclr(uint16_t obj);
-extern	void		objoff(uint16_t obj, uint16_t line, uint16_t num);
-extern	void		objon(uint16_t obj, uint16_t line, uint16_t num);
+extern	void		objclr(int16_t obj);
+extern	void		objoff(int16_t obj, int16_t line, int16_t num);
+extern	void		objon(int16_t obj, int16_t line, int16_t num);
 extern	void		panic(void);
-extern	void		procpfl(uint16_t trig);
+extern	void		procpfl(int16_t trig);
 extern	int32_t		rand24(void);
 extern	void		rjumpto(void *addr);
 extern	void		se_disp(struct s_entry *ep, int16_t sd, struct gdsel *gdstb[], int16_t cf);
 extern	struct	s_entry	*se_exec(struct s_entry *ep, int16_t sd);
-extern	uint16_t	setipl(uint16_t arg);
+extern	int16_t		setipl(int16_t arg);
 extern	int16_t		setjmp(struct JMP_BUF *env);
 extern	void		setsio(void);
@@ -91,17 +91,17 @@
 extern	void		tsplot4(uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
 extern	int32_t		uldiv(int32_t divid, int32_t divis);
-extern	void		vbank(uint16_t b);
-extern	void		vclrav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len);
+extern	void		vbank(int16_t b);
+extern	void		vclrav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
 extern	void		vcputs(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
 extern	void		vcputsv(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
 extern	void		vfwait(void);
-extern	void		vputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib);
-extern	void		vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib);
-extern	void		vputcv(uint16_t *adr, uint16_t row, uint16_t col, uint8_t chr, uint16_t atr, uint16_t cols);
+extern	void		vputa(uint16_t *obase, int16_t row, int16_t col, uint16_t attr);
+extern	void		vputc(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr);
+extern	void		vputcv(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr, int16_t cols);
 extern	void		vputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
-extern	void		vsetav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len);
-extern	void		vsetcv(uint16_t *adr, uint16_t row, uint16_t col, uint16_t cfb, uint16_t len);
-extern	void		vsplot4(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t row, uint16_t col, int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256]);
-extern	void		vvputsv(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t bg, uint16_t row, uint16_t col, int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256]);
+extern	void		vsetav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
+extern	void		vsetcv(uint16_t *obase, int16_t row, int16_t col, uint16_t fgbg, int16_t len);
+extern	void		vsplot4(uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256]);
+extern	void		vvputsv(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256]);
 extern	void		vwputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
 extern	void		vwputs(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
