Example #1
0
 def test_op_print_num(self):
     op = opcodes.op_print_num()
     op.operands = [0x01]
     op.optypes = [opcodes.TYPE_SMALL]
     self.cpu.print_line(ztext.from_zscii("1"))
     self.mymox.ReplayAll()
     op.execute(self.cpu)
     self.mymox.VerifyAll()
Example #2
0
    def test_op_print_num(self):
        op = opcodes.op_print_num()
        op.operands = [0x10]
        op.optypes = [opcodes.TYPE_SMALL]

        self.cpu.print_line([5, 9, 5, 14, 4, 4])

        self.mymox.ReplayAll()
        op.execute(self.cpu)
        self.mymox.VerifyAll()