consreg.h

来自「一个MIPS虚拟机的源码」· C头文件 代码 · 共 41 行

H
41
字号
/* Register offsets and default address for the SPIM-compatible console   device.   Copyright 2001 Brian R. Gaeke.   Copyright 2002, 2003 Paul Twohey.This file is part of VMIPS.VMIPS is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by theFree Software Foundation; either version 2 of the License, or (at youroption) any later version.VMIPS is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITYor FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public Licensefor more details.You should have received a copy of the GNU General Public License alongwith VMIPS; if not, write to the Free Software Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */#ifndef _SPIMCONSREG_H_#define _SPIMCONSREG_H_/* default physical spim base address *///#define SPIM_BASE           0x02000000/* default virtual (KSEG0) spim address *///#define SPIM_ADDR           0xa2000000/* register offsets */#define KEYBOARD_CONTROL  0x00#define KEYBOARD_DATA     0x04#define DISPLAY_CONTROL   0x08#define DISPLAY_DATA      0x0C#endif /* _SPIMCONSREG_H_ */

⌨️ 快捷键说明

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