Skip to content

Instantly share code, notes, and snippets.

@acook
Created November 10, 2015 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acook/21656b6667a5216be5e3 to your computer and use it in GitHub Desktop.
Save acook/21656b6667a5216be5e3 to your computer and use it in GitHub Desktop.
First fully successful execution of a script using blacklight's shiny new VM!
$ go run src/github.com/acook/blacklight/*.go examples/cv-text-manipulation.bl
-- 0 : xf8
-- V at offset #0 CV(3): abc
-- 13 : xf4
-- N at offset #13: 1
-- 22 : x2e
-- opword at offset #22: 46 (ato)
-- 23 : x47
-- opword at offset #23: 71 (c-to-cv)
-- 24 : x5
-- opword at offset #24: 5 (print)b
-- 25 : xf4
-- N at offset #25: 1
-- 34 : x21
-- opword at offset #34: 33 (rmo)
-- 35 : x5
-- opword at offset #35: 5 (print)ac
-- 36 : xf8
-- V at offset #36 CV(3): foo
-- 49 : xf3
-- C at offset #49:
-- 51 : x28
-- opword at offset #51: 40 (app)
-- 52 : xf8
-- V at offset #52 CV(3): bar
-- 65 : x45
-- opword at offset #65: 69 (cat)
-- 66 : x5
-- opword at offset #66: 5 (print)fooóbar
-- 67 : xf8
-- V at offset #67 CV(15): What's up, Doc?
-- 92 : x5
-- opword at offset #92: 5 (print)What's up, Doc?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment