MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / rollUp

Method rollUp

lab8/src/4/src/kernel/stdio.cpp:100–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void STDIO::rollUp()
101{
102 uint length;
103 length = 25 * 80;
104 for (uint i = 80; i < length; ++i)
105 {
106 screen[2 * (i - 80)] = screen[2 * i];
107 screen[2 * (i - 80) + 1] = screen[2 * i + 1];
108 }
109
110 for (uint i = 24 * 80; i < length; ++i)
111 {
112 screen[2 * i] = ' ';
113 screen[2 * i + 1] = 0x07;
114 }
115}
116
117int STDIO::print(const char *const str)
118{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected