mirror of
https://github.com/mlaux/gb6.git
synced 2026-10-24 16:02:16 +00:00
12 lines
288 B
C
12 lines
288 B
C
#ifndef REG_LOADS_H
|
|
#define REG_LOADS_H
|
|
|
|
#include <stdint.h>
|
|
#include "compiler.h"
|
|
|
|
// Compile a register-to-register load (opcodes 0x40-0x7f)
|
|
// Returns 1 if successfully compiled, 0 if unknown opcode (e.g., 0x76 HALT)
|
|
int compile_reg_load(struct code_block *block, uint8_t op);
|
|
|
|
#endif
|