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

Method print

lab8/src/5/src/kernel/stdio.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

syscall_writeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected