Skip to content

Commit

Permalink
First commit in 7 years :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiandupont committed Apr 26, 2012
1 parent 4a00bba commit 7e59817
Show file tree
Hide file tree
Showing 18 changed files with 4,465 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Compiled Object files
*.slo
*.lo
*.o

# Compiled Dynamic libraries
*.so

# Compiled Static libraries
*.lai
*.la
*.a
# Output folders
Debug/
Release/

# Visual Studio stuff
*.suo
*.sdf
*.user



7 changes: 7 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2005 - 2012 Kristian Dupont Knudsen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
rtasm
=====

Runtime Assembler for C++
Runtime Assembler for C++

This library allows you to generate highly efficient code by assembling it runtime. It consists of an approxmiation of x86 assembly language which generated the corresponding IA32 instructions.

Example
----------

int testvalue = 21;

assembler a;
a.add_instruction(new Mov(EAX, imm<32>(testvalue)));
a.add_instruction(new Ret());

int result = (int)a.call();

This code creates an assembler, adds two instructions and calls the assembled code. After that, the result variable will be equals to 21.


Copyright
-----------
(C) Copyright 2005, 2012 Kristian Dupont Knudsen. MIT license -- see LICENSE.md for details
Loading

0 comments on commit 7e59817

Please sign in to comment.