diff --git a/arch/cga.cc b/arch/cga.cc index 6fcda12..3913279 100644 --- a/arch/cga.cc +++ b/arch/cga.cc @@ -27,8 +27,8 @@ void getCursor(unsigned& abs_x, unsigned& abs_y) { uint16_t pos = readCGAReg(RegisterIndex::CURSOR_LOW); pos |= (readCGAReg(RegisterIndex::CURSOR_HIGH) << 8); - abs_x = pos / COLUMNS; - abs_y = pos % COLUMNS; + abs_y = pos / COLUMNS; + abs_x = pos % COLUMNS; } void show(unsigned abs_x, unsigned abs_y, char character, Attribute attrib) {