shithub: apl10

ref: 7b65afc1ad13f3859eca6eadaa2c45d864320304
dir: /fns.h/

View raw version
/* opcodes.c */
void encodeinstr(ParsedInstr *, Label *, uvlong);
void encodelabel(ParsedInstr *, Label *, uvlong);
void decodeinstr(u8int *, ParsedInstr *, Label *, uvlong);

/* util.c */
int write1u(u8int *, u8int);
int write2u(u8int *, u16int);
int write4u(u8int *, u32int);
int write8u(u8int *, u64int);
int write1s(u8int *, s8int);
int write2s(u8int *, s16int);
int write4s(u8int *, s32int);
int write8s(u8int *, s64int);

u8int read1u(u8int *);
u16int read2u(u8int *);
u32int read4u(u8int *);
u64int read8u(u8int *);
s8int read1s(u8int *);
s16int read2s(u8int *);
s32int read4s(u8int *);
s64int read8s(u8int *);