Пример #1
0
 def setUp(self):
     self.mem = memory.Block(pages=256) 
     self.mem[0x00:0x10] = vm.bstr('ABCDEFGHIJKLMNOP')    
     self.mem[0x10:0x20] = vm.bstr('abcdefghijklmnop')
Пример #2
0
 def test_bstr(self):
     self.assertEquals([ord('A'), ord('B')], vm.bstr('AB'))