MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / cur_write

Method cur_write

src/graphics/vga/mod.rs:241–254  ·  view source on GitHub ↗

Write cursor

(&mut self)

Source from the content-addressed store, hash-verified

239
240 // Write cursor
241 fn cur_write(&mut self)
242 {
243 let pos = self.cur[0] + self.cur[1] * BUFFW;
244 let mut address = Port::new(CRTC_ADDRESS_REG);
245 let mut data = Port::new(CRTC_DATA_REG);
246
247 unsafe
248 {
249 address.write(0x0F as u8);
250 data.write((pos & 0xFF) as u8);
251 address.write(0x0E as u8);
252 data.write(((pos >> 8) & 0xFF) as u8);
253 }
254 }
255
256
257 // New line

Callers 1

cpos_setMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected