📄 app2.cc.svn-base
字号:
/*****************************************************************************//* Betriebssysteme *//*---------------------------------------------------------------------------*//* *//* A P P L I C A T I O N *//* *//*---------------------------------------------------------------------------*//* Die Klasse Application definiert die einzige Anwendung von OO-Stubs. *//*****************************************************************************//* INCLUDES */#include "user/appl.h"#include "device/cgastr.h"#include "machine/keyctrl.h"#include "machine/cgascr.h"#include "machine/cpu.h"/* GLOBALE VARIABLEN */extern CGA_Stream kout;extern CPU cpu;extern Keyboard_Controller kbctrl; void Application::action (){ kout.clear(); int loop_x = 0, loop_y = 0, type_x = 0, type_y = 1; kout.setpos(type_x, type_y); int i = 0; for(;;) { cpu.disable_int(); kout.getpos(type_x, type_y); kout.setpos(loop_x, loop_y); kout << "loop: " << i++ <<endl; kout.flush(); kout.setpos(type_x, type_y); cpu.enable_int(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -