mirror of
https://github.com/mlaux/gb6.git
synced 2026-10-24 16:02:16 +00:00
18 lines
306 B
C
18 lines
306 B
C
#ifndef ALU_H
|
|
#define ALU_H
|
|
|
|
#include <stdint.h>
|
|
#include "compiler.h"
|
|
|
|
// Compile 8-bit ALU operations
|
|
// Returns 1 if opcode was handled, 0 otherwise
|
|
int compile_alu_op(
|
|
struct code_block *block,
|
|
uint8_t op,
|
|
struct compile_ctx *ctx,
|
|
uint16_t src_address,
|
|
uint16_t *src_ptr
|
|
);
|
|
|
|
#endif
|