simplify cga memory manipulation
This commit is contained in:
22
c_os/main.cc
22
c_os/main.cc
@ -14,17 +14,39 @@
|
||||
#include "kernel/Globals.h"
|
||||
#include "user/HeapDemo.h"
|
||||
|
||||
// TODO: Where to put this?
|
||||
void scroll_mode() {
|
||||
Key key;
|
||||
// while (true) {
|
||||
// key = kb.key_hit();
|
||||
|
||||
// switch (key.ascii()) {
|
||||
// case 'k':
|
||||
// kout.pageup();
|
||||
// case 'j':
|
||||
// kout.pagedown();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
int main() {
|
||||
kout.clear();
|
||||
|
||||
// Speicherverwaltung initialisieren
|
||||
allocator.init();
|
||||
|
||||
// Initialize scrollback buffer
|
||||
// kout.init();
|
||||
|
||||
allocator.dump_free_memory();
|
||||
|
||||
// text_demo();
|
||||
// sound_demo();
|
||||
// keyboard_demo();
|
||||
heap_demo();
|
||||
|
||||
// scroll_mode();
|
||||
|
||||
while (1) {};
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user