中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-31 19:43
47,815 topics / 349,930 posts / today 0 new / 48,290 members
DOS开发编程 & 发展交流 (开发室) » [Original] QB45, come here, this is your question!
Printable Version  1,372 / 9
Floor1 xy_god Posted 2003-10-08 00:00
中级用户 Posts 56 Credits 276
====== 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!

Floor2 xy_god Posted 2003-10-08 00:00
中级用户 Posts 56 Credits 276
Oh right, it seems you're not using only QB, are you? These things are pretty hard to do with QB, right?!
Floor3 qb45 Posted 2003-10-08 00:00
高级用户 Posts 194 Credits 677
Thanks for your reply, it helped me a lot!
What are the address and rules for video memory under VESA mode? How is its palette constructed?

Rewriting BIOS contents is not CMOS, it's the kind CIH destroys.
The BIOS stores programs, while the CMOS stores data!
Floor4 xy_god Posted 2003-10-08 00:00
中级用户 Posts 56 Credits 276
TNND, what's going on, my IE suddenly crashed, and the reply I had just written is all gone, 55555555555555555,
I'll write it next time! What a pain!
Floor5 xy_god Posted 2003-10-08 00:00
中级用户 Posts 56 Credits 276
OK, let me recommend another website to you, brother, but you'll need some C language foundation! http://tc256.cn.st/
Floor6 qb45 Posted 2003-10-10 00:00
高级用户 Posts 194 Credits 677
One word: "Awesome"! No need to say more!
Floor7 iceboy Posted 2003-10-10 00:00
银牌会员 Posts 512 Credits 1,681
The following is quoted from xy_god at 2003-10-8 19:38:02:
TNND, what's going on, my IE suddenly crashed, and the reply I had just written is all gone, 55555555555555555,
Next time I'll write it! What a pain!


When writing a long piece, it's best to write it in Notepad and save once every ten minutes...
Floor8 Wengier Posted 2003-10-10 00:00
系统支持 Posts 10,521 Credits 27,736
Writing a program to read an 8.4GB hard disk is very simple, DOS already supports large hard disks to begin with.
Floor9 defrag Posted 2005-07-26 14:57
中级用户 Posts 570 Credits 456
HIMEM+QB7.1 supports 4G memory?!
Floor10 qb45 Posted 2005-07-30 10:44
高级用户 Posts 194 Credits 677
defrag, it doesn't seem like I asked this question!
But qb4.5+HIMEM also supports 4GB memory
Without +himem it also supports 4GB memory, it's just more troublesome
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023