From 6918621c344ac295c140ae2f1cc7f373ca8a996f Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Sun, 3 Mar 2019 17:07:23 +0000 Subject: [PATCH] irq is uint8_t --- z80.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/z80.h b/z80.h index e35f5b4..c892824 100644 --- a/z80.h +++ b/z80.h @@ -11,7 +11,7 @@ public: void run(unsigned); void reset(); - void raise(int level) { _irq_pending = level; } + void raise(uint8_t level) { _irq_pending = level; } char *status(char *buf, size_t n, bool hdr=false); void checkpoint(Stream &); @@ -145,7 +145,7 @@ private: unsigned long _ts; - int _irq_pending; + uint8_t _irq_pending; PortDevice *_ports; uint8_t parity(uint8_t);