Skip to content

Commit

Permalink
fix append for read buffer replpy_mode (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
najohnsn authored Apr 25, 2023
1 parent c7aed8b commit 64b26bd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tnz/tnz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 64b26bd

Please sign in to comment.