Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (44 sloc) 891 Bytes
/*
All CopyRights Reserved.
Created by unmanarc.com. emailme to: unma@unmanarc.com
this source are under GNU/GPL (General Public Licence)
http://urcs.unmanarc.com/
http://urcs.sourceforge.net/
by unmanarc.
thanks to all.
enjoy ;)
*/
#pragma once
typedef struct flabel
{
short label_id; //must be 1
char labelname[8];
} s_label;
typedef struct jump
{
short label_id; //must be 2-6
char labelname[8];
} s_jump;
typedef struct com
{
short label_id;
size_t command_lenght;
} s_com;
typedef struct ret
{
short label_id; //must be 1
} s_ret;
typedef struct header
{
char file_info[3]; //="UMA"
short version; // version of executable.
int page_size; //size of each page.
} s_header;
class Ccompiler
{
public:
Ccompiler(void);
int compile(char *script_file, char *file, int pagesize);
~Ccompiler(void);
protected:
};