📄 asmdirective.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 + -