|
0.3.1
|
Functions | |
| static void | cpu_instr_trapa (const uint8_t vector) |
Emit a trap instruction. | |
| static uint32_t | cpu_instr_swapb (uint32_t x) |
Emit a swap.b instruction. | |
| static uint32_t | cpu_instr_swapw (uint32_t x) |
Emit a swap.w instruction. | |
| static void | cpu_instr_clrmac (void) |
Emit a clrmac instruction. | |
| static void | cpu_instr_macw (void *a, void *b) |
Emit a mac.w instruction. | |
| static void | cpu_instr_macl (void *a, void *b) |
Emit a mac.l instruction. | |
| static uint32_t | cpu_instr_sts_mach (void) |
Emit a sts instruction to fetch mach. | |
| static uint32_t | cpu_instr_sts_macl (void) |
Emit a sts instruction to fetch macl. | |
| static uint32_t | cpu_instr_extsw (const uint32_t rm) |
Emit a exts.w instruction. | |
| static uint32_t | cpu_instr_neg (uint32_t rm) |
Emit a neg instruction. | |
| static uint32_t | cpu_instr_rotl (uint32_t rn) |
Emit a rotl instruction. | |
| static uint32_t | cpu_instr_rotr (uint32_t rn) |
Emit a rotr instruction. | |
| static uint32_t | cpu_instr_xtrct (uint32_t rm, uint32_t rn) |
Emit a xtrct instruction. | |
| static void | cpu_instr_nop (void) |
Emit a nop instruction. | |
Description goes here.
|
inlinestatic |
Emit a trap instruction.
| vector | Interrupt vector number (rn). |
Emit a swap.b instruction.
Swap the upper and lower bytes of a 2-byte value.
| x | Value to be swapped. |
Emit a swap.w instruction.
Swap the upper and lower 2-bytes of a 4-byte value.
| x | Value to be swapped. |
|
inlinestatic |
Emit a mac.w instruction.
| a | The rm register. |
| b | The rn register. |
|
inlinestatic |
Emit a mac.l instruction.
| a | The rm register. |
| b | The rn register. |
|
inlinestatic |
Emit a sts instruction to fetch mach.
mach register.
|
inlinestatic |
Emit a sts instruction to fetch macl.
macl register. Emit a exts.w instruction.
| rm | The rm register. |
Emit a neg instruction.
| rm | The rm register. |
Emit a rotl instruction.
| rn | The rn register. |
Emit a rotr instruction.
| rn | The rn register. |