mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-09 23:11:41 +00:00
71 lines
875 B
Plaintext
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
|