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-07-31 21:42
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » I wrote an x86 assembly language compiler. Those who want to play, come in. View 27,631 Replies 23
Original Poster Posted 2005-11-26 23:28 ·  中国 广东 广州 荔湾区 电信
初级用户
Credits 58
Posts 18
Joined 2005-11-26 23:22
20-year member
UID 46005
Gender Male
From 广州
Status Offline
Grammar is similar to NASM

[ Last edited by blackoil on 2006-1-13 at 12:47 ]
Floor 2 Posted 2005-11-27 10:11 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The forum can upload files. When posting, you can use the "Upload Attachment" function below to upload files.
Wengier - 新DOS时代

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

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

Floor 3 Posted 2005-11-27 10:24 ·  中国 广东 广州 荔湾区 电信
初级用户
Credits 58
Posts 18
Joined 2005-11-26 23:22
20-year member
UID 46005
Gender Male
From 广州
Status Offline
Attachments
iaa.zip (15.76 KiB, Credits to download 1 pts, Downloads: 169)
Floor 4 Posted 2005-11-27 12:23 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
Compiler?!
Come and learn!
Floor 5 Posted 2005-11-27 12:25 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
It is best to briefly introduce its characteristics to facilitate everyone's testing and use.
Wengier - 新DOS时代

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

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

Floor 6 Posted 2005-11-28 00:50 ·  中国 广东 广州 白云区 电信
初级用户
Credits 58
Posts 18
Joined 2005-11-26 23:22
20-year member
UID 46005
Gender Male
From 广州
Status Offline
The grammar is very simple, similar to nasm.
[Label] opcode [type-specifier] operand...

For example: Label001 mov word [cs : bx + si + 1234] , dx

The following is a simple code example:
org 100h
mov ah,0eh
mov al,'Y'
int 10h

mov ax,4c00h
int 21h
Floor 7 Posted 2005-12-05 00:41 ·  中国 福建 厦门 电信
初级用户
Credits 31
Posts 16
Joined 2005-12-04 23:26
20-year member
UID 46501
Status Offline
What's that? The screen flashed and then disappeared!
Floor 8 Posted 2005-12-13 15:57 ·  中国 广东 广州 荔湾区 电信
初级用户
Credits 58
Posts 18
Joined 2005-11-26 23:22
20-year member
UID 46005
Gender Male
From 广州
Status Offline
You need to first open the command line.
Floor 9 Posted 2005-12-20 22:44 ·  中国 广东 珠海 电信
中级用户
★★
Credits 493
Posts 161
Joined 2002-10-29 00:00
23-year member
UID 94
Gender Male
From ZHCN
Status Offline
Can it be directly written into an executable file?
Floor 10 Posted 2005-12-21 21:11 ·  中国 广东 广州 荔湾区 电信
初级用户
Credits 58
Posts 18
Joined 2005-11-26 23:22
20-year member
UID 46005
Gender Male
From 广州
Status Offline
Just output bin format directly because I don't know obj format. I'll add it later when I have time. If anyone is interested in teaching me, that's also okay.
Floor 11 Posted 2007-02-03 03:23 ·  中国 福建 福州 电信
初级用户
Credits 27
Posts 8
Joined 2006-04-22 16:54
20-year member
UID 54265
Gender Male
Status Offline
This is a series of repeated "ding" (top) characters. Since there is no specific meaningful text to translate in the traditional sense, we can just present the original content as it is.

In English, it remains as:

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶          顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶                顶顶
顶顶顶顶顶顶顶顶顶顶   顶顶          顶顶顶顶顶顶顶
顶顶顶顶顶顶       顶顶  顶顶顶    顶顶顶顶顶顶顶顶
顶             顶顶顶顶顶顶顶   顶顶顶顶顶顶顶顶顶
顶           顶顶顶顶顶顶顶顶         顶顶顶顶
顶顶         顶顶顶顶顶顶顶顶            顶顶
顶顶顶 顶顶顶    顶顶顶顶顶顶    顶顶顶顶顶     顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶顶  顶顶顶 顶顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶顶  顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶顶  顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶   顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶   顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶   顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶  顶顶顶  顶顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶  顶顶顶  顶顶顶顶   顶顶顶
顶顶顶        顶顶顶顶顶顶 顶顶  顶顶顶顶    顶顶顶
顶顶顶顶       顶顶顶顶顶顶顶顶顶  顶顶 顶顶顶  顶顶顶
顶顶顶顶顶顶     顶顶顶顶顶顶顶顶   顶顶    顶顶顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶顶顶    顶顶顶      顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶     顶顶顶顶顶      顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶    顶顶顶顶顶顶顶顶     顶
顶顶顶顶顶顶顶顶顶顶顶顶顶     顶顶顶顶顶顶顶顶顶顶    顶
顶顶顶顶顶顶顶顶顶顶顶顶  顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶  顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
Floor 12 Posted 2008-09-06 19:42 ·  中国 广东 深圳 电信
新手上路
Credits 14
Posts 5
Joined 2008-04-26 19:38
18-year member
UID 117039
Gender Male
Status Offline
This is just a series of repeated "top" characters. It doesn't have a specific meaningful sentence in the traditional sense. So the translated text is the same as the original content since it's just a repetition of "top" characters.

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶          顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶                顶顶
顶顶顶顶顶顶顶顶顶顶   顶顶          顶顶顶顶顶顶顶
顶顶顶顶顶顶       顶顶  顶顶顶    顶顶顶顶顶顶顶顶
顶             顶顶顶顶顶顶顶   顶顶顶顶顶顶顶顶顶
顶           顶顶顶顶顶顶顶顶         顶顶顶顶
顶顶         顶顶顶顶顶顶顶顶            顶顶
顶顶顶 顶顶顶    顶顶顶顶顶顶    顶顶顶顶顶     顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶顶  顶顶顶 顶顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶顶  顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶顶  顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶   顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶   顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶   顶顶   顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶  顶顶顶  顶顶顶顶   顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶  顶顶顶  顶顶顶顶   顶顶顶
顶顶顶        顶顶顶顶顶顶 顶顶  顶顶顶顶    顶顶顶
顶顶顶顶       顶顶顶顶顶顶顶顶顶  顶顶 顶顶顶  顶顶顶
顶顶顶顶顶顶     顶顶顶顶顶顶顶顶   顶顶    顶顶顶顶顶
顶顶顶顶顶顶顶顶   顶顶顶顶顶顶顶    顶顶顶      顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶     顶顶顶顶顶      顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶    顶顶顶顶顶顶顶顶     顶
顶顶顶顶顶顶顶顶顶顶顶顶顶     顶顶顶顶顶顶顶顶顶顶    顶
顶顶顶顶顶顶顶顶顶顶顶顶  顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶  顶顶
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
Floor 13 Posted 2008-09-07 13:59 ·  中国 广东 深圳 福田区 电信
中级用户
★★
部落守望者
Credits 351
Posts 140
Joined 2006-06-19 17:11
20-year member
UID 57261
Gender Male
Status Offline
It's an assembler, not a compiler. Please correct the wording (it might mislead newbies). Don't take offense, LZ.
一切从底层开始
Floor 14 Posted 2009-10-24 17:22 ·  中国 浙江 杭州 电信
新手上路
Credits 6
Posts 3
Joined 2009-10-23 12:31
16-year member
UID 153562
Gender Male
Status Offline
Floor 15 Posted 2009-10-24 20:20 ·  中国 山东 青岛 联通
初级用户
DOS-CN
Credits 52
Posts 33
Joined 2008-11-17 14:18
17-year member
UID 131241
Gender Male
Status Offline
一万年太久,只争朝夕!
Forum Jump: