empty block check was missing longa on/off

This commit is contained in:
Kelvin Sherlock 2019-08-10 23:12:51 -04:00
parent f006bf7f73
commit 1cf9788194
1 changed files with 2 additions and 2 deletions

4
asm.py
View File

@ -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