Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set adapter mode (AL=03h is 80x25 16 colors, AL=0x07 is 80x25 mono)
- switch (Adapter) {
- case 0 : // MDA/Hercules
- ScreenSeg = 0xB000;
- regs.h.ah = 0x00;
- regs.h.al = 0x07;
- intr (0x10, ®s);
- outp(0x03B8, 9); // Disable blink
- break;
- case 1 : // CGA
- ScreenSeg = 0xB800;
- regs.h.ah = 0x00;
- regs.h.al = 0x03;
- intr (0x10, ®s);
- outp(0x03D8, 9); // Disable blink
- break;
- case 2 : // EGA/VGA+
- ScreenSeg = 0xB800;
- regs.w.ax = 0x0003;
- intr (0x10, ®s);
- regs.h.ah = 0x10; // disable blink
- regs.w.bx = 0x0000;
- intr (0x10, ®s);
- break;
- }
- //Hide cursor
- regs.h.ah = 0x01;
- regs.h.al = 0x03; // BIOS bug causes some 386s to hang if AL isn't current video mode
- regs.h.ch = 0x20;
- intr (0x10, ®s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement