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

📄 asmdirective.java

📁 用Java实现的编译器。把源代码编译成SPARC汇编程序
💻 JAVA
字号:
// $Id: ASMDirective.java,v 1.6 1999/12/01 17:48:58 deberg Exp $package java6035.tools.ASM;/** * ASMDirective * * represents a directive in ASM file. */public abstract class ASMDirective extends ASMEntry{    public static final int SECTION   = 0;    public static final int ALIGN     = 1;    public static final int ASCII     = 2;    public static final int ASCIZ     = 3;    public static final int BYTE      = 4;    public static final int HALF      = 5;    public static final int WORD      = 6;	public static final int SKIP	  = 7;    public static final int COMMON    = 8 ;    public static final int GLOBAL    = 9 ;    public static final int LOCAL     = 10;    public static final int SIZE	  =	11;	public static final int FILE	  =	12;		    protected int asmkind() { return ASMDIRECTIVE; }    protected int type;    ASMDirective() {	System.err.println("Illegal constructor call.\n" + 			   "Dying a terrible death.");	System.exit(-1);    }    ASMDirective(int type)    {	this.type = type;    }    /**     * Returns the type of the directive.     */    public final int getType()    {	return this.type;    }    /**     * Returns the string representation.     */    public String toString()    {	switch(type) {        case SECTION:             return ".section";        case ALIGN:            return ".align";        case ASCII:            return ".ascii";        case ASCIZ:            return ".asciz";        case BYTE:            return ".byte";        case HALF:            return ".half";        case WORD:            return ".word";        case SKIP:            return ".skip";        case COMMON:            return ".common";        case GLOBAL:            return ".global";		case LOCAL:			return ".local";		case SIZE:			return ".size";		case FILE:			return ".file";        default:            throw new ASMException("Illegal directive: "+type);	}    }}

⌨️ 快捷键说明

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