From 3ff9b9289b837d537406abfc6456106560ca6bbb Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 25 May 2015 22:17:43 -0700 Subject: [PATCH] convenience function --- Lua/boilerplate.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lua/boilerplate.lua b/Lua/boilerplate.lua index 87824e2..5130e97 100755 --- a/Lua/boilerplate.lua +++ b/Lua/boilerplate.lua @@ -100,6 +100,11 @@ function asciize(bytes) return str end +function hex(i) + -- convenience function for use in console + printf("%08X", i) +end + --[[ -- now we can just write: handle = A(0x123456, 1)