-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add psa command to print any kind of string ##print
- Loading branch information
Showing
4 changed files
with
231 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
NAME=pxj | ||
FILE=- | ||
CMDS=<<EOF | ||
w hello world # ascii string | ||
psa | ||
w The ç·ñ world # utf8 string | ||
psa | ||
w \x05hello # pascal1 string | ||
psa | ||
w \x03hello # pascal1 truncated string | ||
psa | ||
w \x04\x00\x00\x00hello pointer # 32bit pointer to string | ||
psa | ||
w \x0a\x00\x00\x00hello pointer # 32bit pointer to string | ||
psa | ||
|
||
w hello delta\x00 | ||
s 0x10 | ||
w \xf6\xff\xff\xff pointer # 32bit relative pointer | ||
psa | ||
EOF | ||
EXPECT=<<EOF | ||
hello world | ||
The ç·ñ world | ||
hello | ||
hel | ||
hello pointer | ||
pointer | ||
delta | ||
EOF | ||
RUN | ||
|