rizin/test/db/cmd/feat_foreach
NOT XVilka ba8c170852
Migrate from Capstone to Zydis (x86 architecture) (#5164)
* Added build files [Capstone to Zydis]

* x86 Analysis [Capstone to Zydis]

* Changed x86 RzIL [Capstone to Zydis]

* Changed asm and arch files [Capstone to Zydis]

* Compilation, build error and test fixes [Capstone to Zydis]

* Test changes [Capstone to Zydis]

* Remaining changes [Capstone to Zydis]

* Added BE support [Capstone to Zydis]

---------

Co-authored-by: tushar3q34 <tushar3q34@gmail.com>
2025-05-23 13:03:46 +00:00

65 lines
924 B
Text

NAME=@@= 10 20 30
FILE==
CMDS=%v $$ @@= 10 20 30
EXPECT=<<EOF
0xa
0x14
0x1e
EOF
RUN
NAME=@@c:/c fs:
FILE=bins/mach0/mac-ls
CMDS=<<EOF
e search.in=bin.sections
%v $$ @@c:/ad fs:[ra
EOF
EXPECT=<<EOF
0x1000049d4
0x1000049d5
0x100005078
EOF
RUN
NAME=@@c:/c/a fs:
FILE=bins/mach0/mac-ls
CMDS=<<EOF
e search.in=bin.sections
%v $$ @@c:/ao fs:[ra
EOF
EXPECT=<<EOF
0x1000049d4
0x1000049d5
0x100004cd7
0x100004d95
0x100004e1d
0x100005078
EOF
RUN
NAME=@@= 10 20 30
FILE==
CMDS=%v $$ @@= 10 20 30
EXPECT=<<EOF
0xa
0x14
0x1e
EOF
RUN
NAME=@@= `prz` fix
FILE==
CMDS=<<EOF
e asm.arch=x86
e asm.bytes=true
e asm.bits=64
wz 1 2 3 4
pd 1 @@= `prz`
EOF
EXPECT=<<EOF
0x00000001 2032 and byte [rdx], dh
0x00000002 3220 xor ah, byte [rax]
0x00000003 2033 and byte [rbx], dh
0x00000004 3320 xor esp, dword [rax]
EOF
RUN