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

4
asm.py
View File

@ -11,7 +11,7 @@ class Block(object):
self.rts = False self.rts = False
def empty(self): def empty(self):
return self.size == 0 and self.bne == None return len(self.instr) == 0 and self.bne == None
class Assembler(object): class Assembler(object):
def __init__(self, name): def __init__(self, name):
@ -156,8 +156,8 @@ class Assembler(object):
txt = """ txt = """
phb phb
tsc tsc
tcd
phd phd
tcd
pei cp+1 pei cp+1
plb plb
plb plb