⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 micro.h

📁 操作系统SunOS 4.1.3版本的源码
💻 H
字号:
/*      @(#)micro.h 1.1 92/07/30 SMI      *//* * Copyright (c) 1988 by Sun Microsystems, Inc. *//* *		Micro-assembler global defines *		micro.h	1.0	85/06/06	 */typedef enum {False=0, True} Boolean;typedef enum {NEITHER, NUMBER, ALPHA} SYMTYPE;typedef enum {	Tnull, Pseudo, Branch1, Branch2, State, Regram,		Function, Latch, Pointer, Ramcs, Source,		Output, Csrc, Regctl, Halt, Config} Reswd_type;#define NNODE	16384	/* max number of instructions */#define NSYM    2048	/* more than enough symbol-table space */#define NSTRING 8*NSYM  /* really more than enough string space */#define NHASH 137/* code array descriptor */typedef struct code {	unsigned short word1;	/* 1st word of microcode instruction	*/	unsigned short word2;	/* 2nd word of microcode instruction	*/	unsigned short word3;	/* 3rd word of microcode instruction	*/	unsigned short word4;	/* 4th word of microcode instruction	*/	Boolean	used:1;		/* this word contains an instruction	*/} CODE;/* user-defined symbol bucket */typedef struct sym {	char		*name;	Boolean		defined:1;	short		addr;	struct node	*node;	struct sym	*next_hash;} SYMBOL;/* instruction descriptor nodes */typedef struct node {	char	*filename;	/* name of file in which encountered	*/	SYMBOL  *symptr;  	/* symbolic addr or value		*/	short	lineno;		/* line number on which encountered	*/	short	addr;		/* address we assign this instruction	*/	char    *line;		/* defining text line			*/	CODE	*instr;		/* points to instruction for this node	*/	Boolean sccsid:1;	/* part of the sccsid			*/	Boolean filled:1;	/* instr. has been filled		*/	Boolean org_pseudo:1;	/* it's a pseudo-op			*/	Boolean routine:1;	/* it's a routine pseudo-op		*/	Boolean jumpop:1; 	/* the addr field is used by jump op 	*/} NODE;/* reserved-word bucket */typedef struct reswd {	char	*name;	Reswd_type		type;	short	value1,		value2;	struct reswd *next_hash;} RESERVED;extern Boolean dflag;#define DEBUG if(dflag) printfextern RESERVED * resw_lookup();extern SYMBOL * enter();extern SYMBOL   * lookup();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -