From 1cf9788194b9627347e3a94afc74fcdb3be8c924 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 10 Aug 2019 23:12:51 -0400 Subject: [PATCH] empty block check was missing longa on/off --- asm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asm.py b/asm.py index 8356cca..4d96053 100644 --- a/asm.py +++ b/asm.py @@ -11,7 +11,7 @@ class Block(object): self.rts = False def empty(self): - return self.size == 0 and self.bne == None + return len(self.instr) == 0 and self.bne == None class Assembler(object): def __init__(self, name): @@ -156,8 +156,8 @@ class Assembler(object): txt = """ phb tsc - tcd phd + tcd pei cp+1 plb plb