China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 14:26
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » [Original] QB45, come here, this is your question! View 1,231 Replies 9
Original Poster Posted 2003-10-08 00:00 ·  中国 河北 石家庄 桥西区 联通
中级用户
★★
疯狂的流浪者
Credits 276
Posts 56
Joined 2003-09-25 00:00
22-year member
UID 10329
Gender Male
Status Offline
====== 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!

临河居士
http://www.xygod.pc5.org
Floor 2 Posted 2003-10-08 00:00 ·  中国 河北 石家庄 桥西区 联通
中级用户
★★
疯狂的流浪者
Credits 276
Posts 56
Joined 2003-09-25 00:00
22-year member
UID 10329
Gender Male
Status Offline
Oh right, it seems you're not using only QB, are you? These things are pretty hard to do with QB, right?!
临河居士
http://www.xygod.pc5.org
Floor 3 Posted 2003-10-08 00:00 ·  中国 湖北 武汉 联通
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
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!
Floor 4 Posted 2003-10-08 00:00 ·  中国 河北 石家庄 桥西区 联通
中级用户
★★
疯狂的流浪者
Credits 276
Posts 56
Joined 2003-09-25 00:00
22-year member
UID 10329
Gender Male
Status Offline
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!
临河居士
http://www.xygod.pc5.org
Floor 5 Posted 2003-10-08 00:00 ·  中国 河北 石家庄 桥西区 联通
中级用户
★★
疯狂的流浪者
Credits 276
Posts 56
Joined 2003-09-25 00:00
22-year member
UID 10329
Gender Male
Status Offline
OK, let me recommend another website to you, brother, but you'll need some C language foundation! http://tc256.cn.st/
临河居士
http://www.xygod.pc5.org
Floor 6 Posted 2003-10-10 00:00 ·  中国 湖北 武汉 联通
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
One word: "Awesome"! No need to say more!
Floor 7 Posted 2003-10-10 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
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...
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 8 Posted 2003-10-10 00:00 ·  美国
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Writing a program to read an 8.4GB hard disk is very simple, DOS already supports large hard disks to begin with.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 9 Posted 2005-07-26 14:57 ·  中国 山东 济宁 电信
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
HIMEM+QB7.1 supports 4G memory?!
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 10 Posted 2005-07-30 10:44 ·  中国 湖北 宜昌 电信
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
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
Forum Jump: