Issue 16 in jitasm: Some features I added to jitasm

1 view
Skip to first unread message

jit...@googlecode.com

unread,
Aug 11, 2014, 2:05:23 PM8/11/14
to jitasm...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 16 by hlide.de...@gmail.com: Some features I added to jitasm
http://code.google.com/p/jitasm/issues/detail?id=16

Just in case you may be interested with:

- added the ability to align() code using multi-nop
- added db(), dw(), dd(), dq() to create some variables (preferably after
a "ret")
- added byte_rip_ptr/word_rip_ptr/dword_rip_ptr/etc. to access a variable
through a label
- added memory operand for jmp()/call() included RIP-relative memory operand

Now that I think, Frontend could have an overloadable function to declare
variables and constants pool which may be called after InternalMain(). To
declare one variable or constant in this function, just put a pair:
L("varX"); dq(valX). If some variables need to be aligned, just prepend:
align(n) where n is 1 for 16-bit, 2 for 32-bit, 4 for 64-bit, etc. to
access this variable or constant varX, just use qword_rip_ptr("varX").



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages