Skip to content

Commit

Permalink
Add tricore emulateme style test
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Jan 10, 2024
1 parent 7e91e77 commit 81a35a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion librz/analysis/arch/tricore/tricore_il.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static RzILOpPure *SEXT64(RzILOpPure *value, ut32 length) {
return LET("_sext_val", SIGNED(32, value), rz_il_sextract64(VARLP("_sext_val"), U32(0), U32(length)));
}
static RzILOpPure *ZEXT32(RzILOpPure *value, ut32 length) {
return UNSIGNED(length, value);
return UNSIGNED(32, value);
}
static inline RzILOpPure *SHL0(RzILOpPure *value, ut32 length) {
return SHIFTL0(value, U32(length));
Expand Down
17 changes: 17 additions & 0 deletions test/db/rzil/tricore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
NAME=Testing the decryption in emulateme
FILE=bins/tricore/emulateme.tricore
TIMEOUT=30
CMDS=<<EOF
e io.cache=1
aaa
s main
aezi
aezv FCX 0x1
aezsu 0x8000052e
ps @ obj.seckrit
EOF
EXPECT=<<EOF
FCX = 0x1
Hello from RzIL!
EOF
RUN

0 comments on commit 81a35a6

Please sign in to comment.