summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-02 13:57:56 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-02 13:57:56 -0500
commit2a54b57e6fdff9f602d827282b8e2394ad74b8c9 (patch)
tree9d04bd6c6a076468553d5fffce4f3a68a6abd04e
parent53d61c5e49d00f907ac4f27eb9757bc1a53dfd43 (diff)
slightly improved example
original-commit-id: 404dca19e15ccb63a8c8e22f7cb6fccc236e1b73
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 34be4b3..0f9daa9 100644
--- a/README.md
+++ b/README.md
@@ -224,6 +224,10 @@ crystal.rom_until(0x112116, 0x50, strings=False)
# ['0x48', '0x54', '0x54']
# [72, 84, 84]
+# or just look at it the encoded characters directly
+crystal.rom[0x112116:0x112116+10]
+# 'HTTP/1.0\r\n'
+
# look at a text at 0x197186
text = crystal.parse_text_at2(0x197186, 601, debug=False)
print text