

def test_example_16_bit_subtraction_routine(self):
    ex_2 = '\n            SEC         ;clear the carry\n            LDA $20     ;get the low byte of the first number\n            SBC $22     ;add to it the low byte of the second\n            STA $24     ;store in the low byte of the result\n            LDA $21     ;get the high byte of the first number\n            SBC $23     ;add to it the high byte of the second, plus carry\n            STA $25     ;store in high byte of the result\n            '
    tokens = list(lexical(ex_2))
    ast.assertEquals(21, len(tokens))
    ast = syntax(tokens)
    self.assertEquals(7, len(ast))

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/guide_test.py GuideTest.test_example_16_bit_subtraction_routine/VarMisuse@24/211 `self`->`ast`