示例#1
0
文件: ops.py 项目: Gaming32/8bit
def sub2(comp: Computer):
    ptr = getat_pages(comp, True)
    data = comp.getat(ptr)
    comp.accum -= data
    comp.overflow = comp.accum < 0
    comp.accum %= 256
示例#2
0
文件: ops.py 项目: Gaming32/8bit
def sba(comp: Computer):
    comp.accum -= comp.accum
    comp.overflow = comp.accum < 0
    comp.accum %= 256
示例#3
0
文件: ops.py 项目: Gaming32/8bit
def sbi(comp: Computer):
    comp.pc += 1
    data = comp.getat(comp.pc)
    comp.accum -= data
    comp.overflow = comp.accum < 0
    comp.accum %= 256
示例#4
0
文件: ops.py 项目: Gaming32/8bit
def sby(comp: Computer):
    comp.accum -= comp.regy
    comp.overflow = comp.accum < 0
    comp.accum %= 256
示例#5
0
文件: ops.py 项目: Gaming32/8bit
def add2(comp: Computer):
    ptr = getat_pages(comp, True)
    data = comp.getat(ptr)
    comp.accum += data
    comp.overflow = comp.accum > 255
    comp.accum %= 256
示例#6
0
文件: ops.py 项目: Gaming32/8bit
def adi(comp: Computer):
    comp.pc += 1
    data = comp.getat(comp.pc)
    comp.accum += data
    comp.overflow = comp.accum > 255
    comp.accum %= 256
示例#7
0
文件: ops.py 项目: Gaming32/8bit
def ada(comp: Computer):
    comp.accum += comp.accum
    comp.overflow = comp.accum > 255
    comp.accum %= 256
示例#8
0
文件: ops.py 项目: Gaming32/8bit
def ady(comp: Computer):
    comp.accum += comp.regy
    comp.overflow = comp.accum > 255
    comp.accum %= 256