diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 07:54:02 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 07:54:02 +0800 |
| commit | e939a810a401b389a398aa10499e7be142bf45ca (patch) | |
| tree | 1b84fbac69be10f9385f62fd4dc04975b4bfd493 /mubios/services/int10.c | |
| parent | bb20921d00c770cb30bb85a300423d9062a94d91 (diff) | |
| download | rcc-project-e939a810a401b389a398aa10499e7be142bf45ca.tar.gz rcc-project-e939a810a401b389a398aa10499e7be142bf45ca.tar.xz | |
[mubios] Extend registers from 16-bit to 32-bit
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios/services/int10.c')
| -rw-r--r-- | mubios/services/int10.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mubios/services/int10.c b/mubios/services/int10.c index 76a1c1d..0e63ef2 100644 --- a/mubios/services/int10.c +++ b/mubios/services/int10.c @@ -44,7 +44,7 @@ int10_service (struct bios_regs *regs) u8 attribute; u16 position; - function = (u8)(regs->ax >> 8); + function = (u8)(regs->eax >> 8); if (function != 0x0Eu) return; @@ -52,8 +52,8 @@ int10_service (struct bios_regs *regs) cursor = (volatile u16 *)BDA_CURSOR; video = (volatile u16 *)VGA_TEXT_BASE; - character = (u8)regs->ax; - attribute = (u8)regs->bx; + character = (u8)regs->eax; + attribute = (u8)regs->ebx; position = *cursor; if (character == 0x0Du) |
