Blob Blame History Raw
From f68cc06ec746ff6cc889d1a7b07ebd8769d7909c Mon Sep 17 00:00:00 2001
From: Daniel Serpell <daniel.serpell@gmail.com>
Date: Sun, 26 Jan 2020 23:55:37 -0300
Subject: [PATCH 143/170] Fixes Atari OS devhdl_t, init field needs an JMP
 byte.

This fixes issue #1002.
---
 include/_atarios.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/_atarios.h b/include/_atarios.h
index c15a9943..5e1374fa 100644
--- a/include/_atarios.h
+++ b/include/_atarios.h
@@ -120,8 +120,9 @@ struct __devhdl {
     void *put;                  /* address of PUT BYTE routine -1 */
     void *status;               /* address of GET STATUS routine -1 */
     void *special;              /* address od SPECIAL routine -1 */
+    unsigned char jmp_inst;     /* a "JMP" byte, should be $4C */
     void (*init)(void);         /* init routine (JMP INIT) */
-    void *reserved;             /* unused */
+    unsigned char reserved;     /* unused */
 };
 
 typedef struct __devhdl devhdl_t;
-- 
2.26.0