radare2/test/db/cmd/cmd_pa
2021-08-14 02:25:16 +02:00

71 lines
875 B
Plaintext

NAME=asm/callflag
FILE=-
CMDS=<<EOF
e asm.arch=x86
f eax=33
pa call eax
f test=eax
pa call test
EOF
EXPECT=<<EOF
ffd0
e81c000000
EOF
RUN
NAME=asm.assembler
FILE=-
CMDS=<<EOF
e asm.arch=x86
pa call eax
e asm.assembler=java
pa bipush 33
EOF
EXPECT=<<EOF
ffd0
1021
EOF
RUN
NAME=Invalid x86 out assembly
FILE=-
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
pa out 256,AL
EOF
EXPECT=<<EOF
EOF
EXPECT_ERR=<<EOF
Cannot assemble 'out 256,AL' at line 3
EOF
RUN
NAME=Invalid x86 32bit push assembly
FILE=-
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
pa push 0x3311223311222222
EOF
EXPECT=<<EOF
EOF
EXPECT_ERR=<<EOF
Cannot assemble 'push 0x3311223311222222' at line 3
EOF
RUN
NAME=Invalid x86 32bit mov assembly
FILE=-
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
pa mov eax, 0x3311223311222222
EOF
EXPECT=<<EOF
EOF
EXPECT_ERR=<<EOF
Cannot assemble 'mov eax, 0x3311223311222222' at line 3
EOF
RUN