Skip to content

Instantly share code, notes, and snippets.

@shizzeer
Created October 27, 2018 22:17
case '.':
{
char jit_putchar[] =
{
// using linux syscall write
0xba, 0x01, 0x00, 0x00, 0x00, // mov rdx, 1
0xbb, 0x01, 0x00, 0x00, 0x00, // mov rbx, 1
0xb8, 0x04, 0x00, 0x00, 0x00, // mov rax, 4
0xcd, 0x80, // int 0x80
};
vector_push_back(&op_instructions, jit_putchar, sizeof(jit_putchar));
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment