From 64b26bdeb7f258fd752e313a915ef713516e74fc Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Tue, 25 Apr 2023 10:06:20 -0400 Subject: [PATCH] fix append for read buffer replpy_mode (#67) --- tnz/tnz.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tnz/tnz.py b/tnz/tnz.py index 6784d67..7d91142 100644 --- a/tnz/tnz.py +++ b/tnz/tnz.py @@ -4292,27 +4292,32 @@ def __read_buffer(self): attr = self.plane_eh[addr] if attr: # if not default sfe[1] += 1 - sfe.append(0x41, attr) + sfe.append(0x41) + sfe.append(attr) attr = self.plane_fg[addr] if attr: # if not default sfe[1] += 1 - sfe.append(0x42, attr) + sfe.append(0x42) + sfe.append(attr) attr = self.plane_cs[addr] if attr: # if not default sfe[1] += 1 - sfe.append(0x43, attr) + sfe.append(0x43) + sfe.append(attr) attr = self.plane_bg[addr] if attr: # if not default sfe[1] += 1 - sfe.append(0x45, attr) + sfe.append(0x45) + sfe.append(attr) if sfe[1] != 0x40: # if not default` if fattr: sfe[1] += 1 - sfe.append(0xc0, fattr) + sfe.append(0xc0) + sfe.append(fattr) sfb = sfe