diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-09-02 14:42:08 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-09-02 14:42:08 +0200 |
| commit | 2659caf02742223b203821466aa162afe0ef717d (patch) | |
| tree | a0946e5912c64f54f8d0bb307464e9e386af499f /example/asm_mips32.py | |
| parent | eebb3422f0c9606a92933630aa8cc02ac4b6d7bd (diff) | |
| download | miasm-2659caf02742223b203821466aa162afe0ef717d.tar.gz miasm-2659caf02742223b203821466aa162afe0ef717d.zip | |
mips example: modify example for reg tests
Diffstat (limited to 'example/asm_mips32.py')
| -rw-r--r-- | example/asm_mips32.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/example/asm_mips32.py b/example/asm_mips32.py index c28519b9..83e7a90b 100644 --- a/example/asm_mips32.py +++ b/example/asm_mips32.py @@ -30,14 +30,16 @@ st = StrPatchwork() blocs, symbol_pool = parse_asm.parse_txt(mn_mips32, "l", ''' main: ADDIU A0, ZERO, 0x10 - ADDIU A1, ZERO, 0 + ADDIU A1, ZERO, 0 loop: ADDIU A1, A1, 0x1 - ADDIU A0, A0, 0xFFFFFFFF BNE A0, ZERO, loop - NOP + ADDIU A0, A0, 0xFFFFFFFF + + ADDIU A2, A2, 0x1 + MOVN A1, ZERO, ZERO JR RA - NOP + ADDIU A2, A2, 0x1 ''') # fix shellcode addr |