====== In your message of 2003-10-8 17:30:48 you wrote: ======
I happened to run into you while I have some questions about system programming,
how do you write a program for 800*600*16-bit color, refresh rate 75HZ?
How do you write a program that rewrites BIOS contents.
How do you write a program that reads a hard disk larger than 8.4GB.
I don't want the original program, just give me the interrupt entry, exit, and call parameters. If it uses I/O ports, just state them directly!
=====================================
For 800*600, 16-bit color, use the following interrupt:
mov ax,4f02h
mov bx,102h
int 10H
That is, use interrupt 10H. AX means using VESA mode, BX is the display mode to set.
I have written a BMP decoding program before, but portability has never been solved!
As for refresh rate, I don't know how to control it either!
Hoping experts can give some advice!
//*****************************************************//
Rewriting BIOS contents:
It should be rewriting CMOS contents, right? Generally it's writing to port 0X70 or 0X71!
//******************************************************//
Controlling a hard disk larger than 8.4G:
http://220.195.149.80:8080/view.asp?file=309
I can only give you this thing, I don't remember a lot of it too clearly anymore, hehe!
//*********************************************************//
Really sorry, I always look this stuff up when writing code, I rarely remember it, hehe!
If there are mistakes, please forgive me a lot!
I happened to run into you while I have some questions about system programming,
how do you write a program for 800*600*16-bit color, refresh rate 75HZ?
How do you write a program that rewrites BIOS contents.
How do you write a program that reads a hard disk larger than 8.4GB.
I don't want the original program, just give me the interrupt entry, exit, and call parameters. If it uses I/O ports, just state them directly!
=====================================
For 800*600, 16-bit color, use the following interrupt:
mov ax,4f02h
mov bx,102h
int 10H
That is, use interrupt 10H. AX means using VESA mode, BX is the display mode to set.
I have written a BMP decoding program before, but portability has never been solved!
As for refresh rate, I don't know how to control it either!
Hoping experts can give some advice!
//*****************************************************//
Rewriting BIOS contents:
It should be rewriting CMOS contents, right? Generally it's writing to port 0X70 or 0X71!
//******************************************************//
Controlling a hard disk larger than 8.4G:
http://220.195.149.80:8080/view.asp?file=309
I can only give you this thing, I don't remember a lot of it too clearly anymore, hehe!
//*********************************************************//
Really sorry, I always look this stuff up when writing code, I rarely remember it, hehe!
If there are mistakes, please forgive me a lot!
临河居士
http://www.xygod.pc5.org
http://www.xygod.pc5.org



