16 lines
420 B
C
16 lines
420 B
C
#include "../header/helpers.h"
|
|
|
|
void print_target_code(uint32_t *target_code)
|
|
{
|
|
int instruction_index = 0;
|
|
while (target_code[instruction_index] != 0)
|
|
{
|
|
int i = 0;
|
|
for (i = (sizeof(target_code[instruction_index]) * 8) - 1; i >= 0; i--)
|
|
{
|
|
putchar(target_code[instruction_index] & (1u << i) ? '1' : '0');
|
|
}
|
|
printf("\n");
|
|
instruction_index++;
|
|
}
|
|
}
|