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-06-28 03:29
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Post a self-written assembly language imitation of a Windows dialog box View 14,115 Replies 51
Floor 16 Posted 2006-09-04 23:55 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
MINIdia*.* File Description

After merging the functions of each function and optimizing the code, this was a successful production of the smallest version of the dialog box demonstration program (only the Chinese character display version) ----

Only 1187 bytes of miniDia.com (self-contained font data version)
Only 818 bytes of miniDial.com (requires font HZK12 version)

The source program *.ASM is in the compressed package.

Ben Shi on 2006.9.4
Attachments
MINIDIAL.RAR (5.57 KiB, Credits to download 1 pts, Downloads: 65)
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 17 Posted 2006-09-25 03:01 ·  中国 重庆 电信
初级用户
Credits 45
Posts 17
Joined 2006-09-23 13:24
19-year member
UID 63469
Status Offline
Originally posted by jizhouhao at 10:50:


Alas, I feel the same... Everywhere are ax, bx, and the whole program makes me dizzy.
Floor 18 Posted 2006-12-11 23:15 ·  中国 广东 电信
初级用户
Credits 92
Posts 41
Joined 2005-12-23 22:40
20-year member
UID 47754
Status Offline
Can the following functions be added:
1. Here at the start, programs can be loaded, just like clicking: Windows' Start -> Programs -> Word to run Word.
2. When exiting this interface, press OK to return to DOS, and press Cancel to continue to return to the original interface.
Floor 19 Posted 2006-12-22 06:43 ·  中国 湖北 武汉 电信
新手上路
Credits 5
Posts 4
Joined 2005-10-21 01:06
20-year member
UID 43825
Gender Male
From hb
Status Offline
Awesome...
Floor 20 Posted 2006-12-26 21:42 ·  中国 山东 泰安 联通
新手上路
Credits 19
Posts 6
Joined 2006-12-26 09:10
19-year member
UID 74598
Gender Male
Status Offline
Floor 21 Posted 2006-12-28 13:55 ·  中国 广东 东莞 电信
中级用户
★★
Credits 493
Posts 161
Joined 2002-10-29 00:00
23-year member
UID 94
Gender Male
From ZHCN
Status Offline
LZ and Ben are brothers, really too strong. HOHO
Floor 22 Posted 2007-01-25 01:09 ·  中国 河南 南阳 联通
新手上路
Credits 4
Posts 2
Joined 2007-01-24 08:46
19-year member
UID 77523
Gender Female
Status Offline
Really powerful...
Floor 23 Posted 2007-01-25 01:41 ·  中国 江西 抚州 临川区 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
Oh, expert! Little brother has always wanted to learn assembly language, but just can't get started, so depressed.
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Floor 24 Posted 2007-01-25 02:44 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Reading Wang Shuang's "Assembly Language" can really lead to an "enlightenment" entry! (Unfortunately, back in my own day, there was no such book written like that!)
Then, while doing experiments, also refer to an assembly instruction book. --- You need to disassemble short.COM files frequently.
You must learn through actual combat! ! !
Otherwise, you will never be able to do actual combat! ! ! ! ! !
I have never learned about computers from a teacher in class!
Pure self-study (facing the screen) --- from English DOS to Chinese DOS to systems, software, hardware, programming, etc.
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 25 Posted 2007-01-31 09:07 ·  中国 江西 抚州 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
Strong, I don't know when I will be able to learn it. I really want to find a teacher.
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Floor 26 Posted 2007-02-01 04:27 ·  中国 四川 成都 电信
初级用户
Credits 72
Posts 34
Joined 2007-01-12 01:43
19-year member
UID 76224
Gender Male
From 中国大陆
Status Offline
Not bad, support.

12*12, 14*14, 16*16 Chinese character fonts can be considered for external use, which can save memory, but at the cost of speed.

In the PowsdeRTOS system: GUI, I also encountered memory and speed issues before, heh heh.
PowsdeRTOS,可运行于FreeDOS,窗口实时操作系统.
Floor 27 Posted 2007-02-01 04:33 ·  中国 四川 成都 电信
初级用户
Credits 72
Posts 34
Joined 2007-01-12 01:43
19-year member
UID 76224
Gender Male
From 中国大陆
Status Offline
Quote from post 18

Originally posted by wwwlgh at 2006-12-11 23:15:
Can the following functions be added:
1. In the Start area, programs can be loaded, just like clicking: Windows Start -> Programs -> Word to run Word.
2. When exiting this interface, press OK to return to DOS...



In the GUI of the PowsdeRTOS system, it is as you said: Start -> Programs -> Applications...


In fact, this is exactly the reason for "first impression bias", which has caused the existing usage habits of everyone. Like the "Start" in the APPLE system, it is another feeling, hehe.

[ Last edited by osfree on 2007-2-1 at 04:45 AM ]
PowsdeRTOS,可运行于FreeDOS,窗口实时操作系统.
Floor 28 Posted 2007-02-01 12:44 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by osfree at 2007-2-1 04:27:
Not bad, support.

For 12*12, 14*14, 16*16 Chinese character fonts, consider external hanging, which can save memory but sacrifice speed.

In the PowsdeRTOS system: GUI, I also encountered memory and speed issues before...


In the history of the development of DOS Chinese character systems, the font processing solution can be for reference. If you can know the text range of the content that is often displayed, you can consider putting the frequently used character glyphs in the high-speed cache, and the other character glyphs in the hard disk, so that a better speed can also be achieved.
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 29 Posted 2008-09-17 09:55 ·  中国 北京 教育网(光环新网)
新手上路
Credits 2
Posts 1
Joined 2008-09-17 09:31
17-year member
UID 125836
Gender Male
Status Offline
Good
Floor 30 Posted 2008-09-18 16:57 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
18-year member
UID 94024
Gender Male
Status Offline
Under DOS, if you rely entirely on calling the drawing of points, the speed will be very slow. A more compromise method is to rigidly stipulate that the start and end positions of the rectangular box must be multiples of 8 (this is also equivalent to the coordinates in text mode, which is beneficial for localizing the original English software without the support of a Chinese character system, and at the same time, there will be no need to shield the written points). Since it is 16-color, the color can be split into 4 planes and written 4 times. When writing to the video memory, try to use 32-bit transmission as much as possible. Special processing is done for points that are not enough to make up 4 bytes. In this way, the overall display speed will be greatly improved.

[ Last edited by netwinxp on 2008-9-18 at 04:59 PM ]
Forum Jump: