コード例 #1
0
ファイル: test_hexFile.py プロジェクト: valorekhov/AvrBee
    def test_Read(self):
        reader = HexFileFormat( os.path.join(os.path.dirname(__file__), "MyBlink.cpp.hex" ) )
        instructions = reader.get_bytes();
        self.assertEqual(69, len(instructions))

        addr, bytes = instructions[-1]
        self.assertEqual(0x043A, addr)

        addr, bytes = instructions[2]
        self.assertEqual(0x0020, addr)