Write cursor
(&mut self)
| 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 |