T-EMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Assembler.h
Go to the documentation of this file.
1 //===-- temu-c/Assembler.h - Assembler and Dissassebler----------*- C++ -*-===//
2 //
3 // T-EMU: The Terma Emulator
4 // (c) Terma 2015
5 // Authors: Mattias Holm <maho (at) terma.com>
6 //
7 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef TEMU_SUPPORT_ASSEMBLER
17 #define TEMU_SUPPORT_ASSEMBLER
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include <stdint.h>
23 
28 uint32_t temu_assemble(void *Cpu, const char *AsmStr);
29 
32 // and is responsible for calling free() on it.
35 char* temu_disassemble(void *Cpu, uint32_t Instr);
36 
41 void temu_assembleToMemory(void *Cpu, const char *AsmStr, uint64_t Addr);
42 
49 // and is responsible for calling free() on it.
55 char* temu_disassembleMemory(void *Cpu, uint64_t Addr);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 
62 #endif /* ! TEMU_SUPPORT_ASSEMBLER */
char * temu_disassemble(void *Cpu, uint32_t Instr)
void temu_assembleToMemory(void *Cpu, const char *AsmStr, uint64_t Addr)
uint32_t temu_assemble(void *Cpu, const char *AsmStr)
char * temu_disassembleMemory(void *Cpu, uint64_t Addr)