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

Method rollUp

lab4/src/7/src/kernel/stdio.cpp:97–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void STDIO::rollUp()
98{
99 uint length;
100 length = 25 * 80;
101 for (uint i = 80; i < length; ++i)
102 {
103 screen[2 * (i - 80)] = screen[2 * i];
104 screen[2 * (i - 80) + 1] = screen[2 * i + 1];
105 }
106
107 for (uint i = 24 * 80; i < length; ++i)
108 {
109 screen[2 * i] = ' ';
110 screen[2 * i + 1] = 0x07;
111 }
112}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected