Screen + Scrollen
Posted: Thu Sep 26, 2002 10:24 am
Hi,
i try to write a small os. Now i write functions for the console. The Problem is the scroll-function. The os is protected mode. i have found a scroll function, but when i execute this function, my pc reboots, why ?
Thanks
Matze
Here is the function:
unsigned short crtc_adr = 0x3D4;
unsigned short offset = 80;
outportb(crtc_adr + 0, 12);
outportb(crtc_adr + 1, offset >> ;
outportb(crtc_adr + 0, 13);
outportb(crtc_adr + 1, offset & 0xFF);
i try to write a small os. Now i write functions for the console. The Problem is the scroll-function. The os is protected mode. i have found a scroll function, but when i execute this function, my pc reboots, why ?
Thanks
Matze
Here is the function:
unsigned short crtc_adr = 0x3D4;
unsigned short offset = 80;
outportb(crtc_adr + 0, 12);
outportb(crtc_adr + 1, offset >> ;
outportb(crtc_adr + 0, 13);
outportb(crtc_adr + 1, offset & 0xFF);