ack/mach/vc4/as/mach1.c
David Given 26877d3c4f Add a whole bunch of VC4 opcodes.
--HG--
branch : dtrg-videocore
2013-05-17 23:30:49 +01:00

27 lines
830 B
C

/*
* VideoCore IV assembler for the ACK
* © 2013 David Given
* This file is redistributable under the terms of the 3-clause BSD license.
* See the file 'Copying' in the root of the distribution for the full text.
*/
#include "binary.h"
#define ALWAYS 14
extern void alu_instr_reg(unsigned opcode, unsigned cc, unsigned rd,
unsigned ra, unsigned rb);
extern void alu_instr_lit(unsigned opcode, unsigned cc, unsigned rd,
unsigned ra, unsigned value);
extern void misc_instr_reg(unsigned opcode, unsigned cc, unsigned rd,
unsigned ra, unsigned rb);
extern void misc_instr_lit(unsigned opcode, unsigned cc, unsigned rd,
unsigned ra, unsigned value);
extern void branch_instr(unsigned bl, unsigned cc, struct expr_t* expr);
extern void stack_instr(unsigned opcode, unsigned loreg, unsigned hireg,
unsigned extrareg);