Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat d8_tab.py
- from pta.BasicWordInstruction import *
- Insn('ldib *', I8, 0x01)
- Insn('stab *', I10, 0xB1)
- Insn('jmp *', I11, 0x10)
- Insn('nop', I0, 0x00)
- Insn('ldab @x', I0, 0x74)
- Insn('ldab @x,*', I7, 0x74)
- $ cat d8.a
- nop
- nop
- nop
- start:
- ldib 0x0
- stab ledloc
- ldib 0xff
- stab ledloc
- jmp start
- ledloc = 0x123
- ldab @x
- ldab @x, 0
- ldab @x, 19
- $ python ptasm.py d8.a
- 0000: 0000 0000 0000 0100 b123 01ff b123 1003
- 0008: 7400 7400 7413
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement