vgaconstants.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 75 行
JAVA
75 行
/*
* $Id: VgaConstants.java,v 1.1 2003/11/25 11:51:40 epr Exp $
*/
package org.jnode.driver.video.vgahw;
/**
* @author epr
*/
public interface VgaConstants {
public static final byte[] REDS = {
0, 0, 0, 0, (byte) 168, (byte) 168, (byte) 168, (byte) 168, (byte) 84, (byte) 84, (byte) 84, (byte) 84, (byte) 255, (byte) 255, (byte) 255, (byte) 255 };
public static final byte[] GREENS = {
0, 0, (byte) 168, (byte) 168, 0, 0, (byte) 84, (byte) 168, (byte) 84, (byte) 84, (byte) 255, (byte) 255, (byte) 84, (byte) 84, (byte) 255, (byte) 255 };
public static final byte[] BLUES = {
0, (byte) 168, 0, (byte) 168, 0, (byte) 168, 0, (byte) 168, (byte) 84, (byte) 255, (byte) 84, (byte) 255, (byte) 84, (byte) 255, (byte) 84, (byte) 255 };
public static final int VGA_FIRST_PORT = 0x3b0;
public static final int VGA_LAST_PORT = VGA_FIRST_PORT + 0x2f;
/** Attribute index register */
public static final int ATT_I = VGA_FIRST_PORT + 0x10;
/** Attribute read register */
public static final int ATT_R = VGA_FIRST_PORT + 0x11;
/** CRT Control index register */
public static final int CRTC_I = VGA_FIRST_PORT + 0x24;
/** CRT Control data register */
public static final int CRTC_D = VGA_FIRST_PORT + 0x25;
/** Miscellaneous write registers */
public static final int MISC_W = VGA_FIRST_PORT + 0x12;
/** Miscellaneous read registers */
public static final int MISC_R = VGA_FIRST_PORT + 0x1C;
/** Sequencer index register */
public static final int SEQ_I = VGA_FIRST_PORT + 0x14;
/** Sequencer data register */
public static final int SEQ_D = VGA_FIRST_PORT + 0x15;
/** DAC State register (read only) */
public static final int DAC_SR = VGA_FIRST_PORT + 0x17;
/** DAC Address Read mode register (write only) */
public static final int DAC_RI = VGA_FIRST_PORT + 0x17;
/** DAC Address Write mode register */
public static final int DAC_WI = VGA_FIRST_PORT + 0x18;
/** DAC Data register */
public static final int DAC_D = VGA_FIRST_PORT + 0x19;
/** Graphics-mode index register */
public static final int GRAF_I = VGA_FIRST_PORT + 0x1E;
/** Graphics-mode data register */
public static final int GRAF_D = VGA_FIRST_PORT + 0x1F;
/** CRT Control Mode index register */
public static final int CRTC_IM = VGA_FIRST_PORT + 0x04;
/** CRT Control Mode data register */
public static final int CRTC_DM = VGA_FIRST_PORT + 0x05;
/** Status color register */
public static final int STATC = VGA_FIRST_PORT + 0x2A;
/** Status mono register */
public static final int STATM = VGA_FIRST_PORT + 0x0A;
/** VGA Error register */
public static final int VGAE = VGA_FIRST_PORT + 0x13;
// Logical operation
public static final int LOGOP_NONE = 0x00;
public static final int LOGOP_AND = 0x08;
public static final int LOGOP_OR = 0x10;
public static final int LOGOP_XOR = 0x18;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?