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

Method print

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

Source from the content-addressed store, hash-verified

13}
14
15void STDIO::print(uint x, uint y, uint8 c, uint8 color)
16{
17
18 if (x >= 25 || y >= 80)
19 {
20 return;
21 }
22
23 uint pos = x * 80 + y;
24 screen[2 * pos] = c;
25 screen[2 * pos + 1] = color;
26}
27
28void STDIO::print(uint8 c, uint8 color)
29{

Callers 1

c_time_interrupt_handlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected