From abeb41d80b6b2c67b060016404128c398a37f693 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 6 Oct 2016 01:33:25 -0400 Subject: Rearrange OP_PUSH so immediate is high dword in jrp --- .bin/jrp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bin/jrp.c b/.bin/jrp.c index 72a9c303..cd117f23 100755 --- a/.bin/jrp.c +++ b/.bin/jrp.c @@ -16,7 +16,7 @@ enum { OP_PROL = 0x90fc8948e5894855, // push ebp; mov rbp, rsp; mov rsp, rdi OP_EPIL = 0xc35dec8948e08948, // mov rax, rsp; mov rsp, rbp; pop rbp; ret OP_CALL = 0x90666666d0ff5f58, // pop rax; pop rdi; call rax - OP_PUSH = 0x9066660000000068, // push strict dword 0 + OP_PUSH = 0x0000000068906666, // push strict dword 0 OP_DROP = 0x9066666608c48348, // add rsp, 8 OP_DUP = 0x90906666662434ff, // push qword [rsp] OP_SWAP = 0x9066666650515859, // pop rcx; pop rax; push rcx; push rax @@ -47,8 +47,8 @@ int main() { op *p = ops; *p++ = OP_PROL; - *p++ = OP_PUSH | (1 << 8); - *p++ = OP_PUSH | (2 << 8); + *p++ = OP_PUSH | (op)1 << 32; + *p++ = OP_PUSH | (op)2 << 32; *p++ = OP_ADD; *p++ = OP_DUP; *p++ = OP_MUL; -- cgit 1.4.1 follow=1'>log tree commit diff
path: root/bin/dash/.gitignore (unfollow)
Commit message (Collapse)Author
2021-01-20Use mtags for sh in source-filterJune McEnroe
2021-01-20Generate tags for sh files in mtagsJune McEnroe
Only matches functions declared at the beginnings of lines, but I'm fine with that.
2021-01-20Add messy sh lexerJune McEnroe
Surprisingly seems to work for everything I looked at in my repos.
2021-01-20Add all target to git.causal.agency MakefileJune McEnroe
2021-01-20Remove Lua supportJune McEnroe
Lua support is unused and the dlsym fwrite/write hacks horrify me. Clean it up.
2021-01-20Fix tests for diff spansJune McEnroe
2021-01-20Avoid matching ':' in make tagsJune McEnroe
Otherwise a :: rule includes one of the ':'s in the tag name.
2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe
Otherwise the "id" in "void" matches for "void id".
2021-01-19Escape \ and / in mtags search patternsJune McEnroe
2021-01-20Use mtags in source-filterJune McEnroe
2021-01-19Add mtags to generate tags for make and mdocJune McEnroe
2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe
2021-01-19Don't use a pager if reading standard inputJune McEnroe
2021-01-19Support BSD make syntax and match *.amJune McEnroe
These don't really go together, but...
2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe
Otherwise it ends up going into Shell state.
2021-01-18Allow matching lexers using first input lineJune McEnroe