Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (27 sloc) 0.738 kb
/**
File: textn.h
Project: DCPU-16 Tools
Component: Assembler
Authors: James Rhodes
Description: Declares public functions for writing out
extension tables.
**/
#ifndef __DCPU_ASM_TEXTN_H
#define __DCPU_ASM_TEXTN_H
#include <stdint.h>
#include <stdio.h>
#include "aout.h"
#define EXTENSION_MAGIC 0x4321
#define EXTENSION_VERSION 0x0001
#define EXTENSION_OFFSET extension_offset + 5
#define EXTENSION_MAXIMUM_ENTRIES 50
#define EXTENSION_WRITE_OP(opcode, a, b); \
inst = INSTRUCTION_CREATE(opcode, a, b); \
iwrite(&inst, out);
#define EXTENSION_WRITE_RAW(raw); \
inst = raw; \
iwrite(&inst, out);
char* textn_verify_name(char* name);
uint16_t textn_init(struct aout_byte* start);
void textn_write(FILE* out);
#endif
Jump to Line
Something went wrong with that request. Please try again.