Assembler/header/target_code_generator.h
2023-01-12 00:12:12 +01:00

15 lines
No EOL
500 B
C

#include "../header/common.h"
#ifndef _TAGET_CODE_GENERATOR_H_
#define _TAGET_CODE_GENERATOR_H_
// Get a machine code instruction from opcode and and optional adress
__uint32_t get_target_instruction(__uint8_t opcode, __uint8_t use_adress, __uint32_t adress);
// Generate the machine code from tokens into target_code
void gen_target_code(char tokens[][MAX_TOKEN_SIZE], __uint32_t *target_code);
//Print out the machine code in target_code
void print_target_code(__uint32_t *target_code);
#endif