Skip to content

Commit 7b8a61b

Browse files
committed
文档修改
1 parent ab34030 commit 7b8a61b

File tree

3 files changed

+54
-22
lines changed

3 files changed

+54
-22
lines changed

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ All notable changes to the "masm-tasm" extension will be documented in this file
1212

1313
### 0.1.5
1414

15+
- [x] DOS 汇编基本的语法支持
16+
- [x] vscode 界面的大纲视图的简单实现
17+
1518
汇编语言支持的symbol大概有以下几种,但是vscode的[SymbolKind](https://code.visualstudio.com/api/references/vscode-api#SymbolKind)却与它们不对应,我决定做以下对应
1619

1720
|assembly symbol|vscode symbol|
1821
|---|---|
19-
|macro 宏|class|
20-
|segment段|module|
21-
|variable变量|variable|
22-
|label 标号|key|
23-
|procedure子程序|function|
22+
|macro|Module|
23+
|segment|Class|
24+
|procedure|Function|
25+
|struct|Struct|
26+
|label|Key|
27+
|variable|Variable|
2428

2529
### 0.1.4
2630

README.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
# Dos assembly (MASM/TASM) via DOSBox(and msdos-player)
1+
# DOS assembly (MASM/TASM) via DOSBox(and msdos-player)
22

33
[中文](https://github.com/xsro/masm-tasm/blob/master/doc/README_zh.md)
44

5-
Language support for DOS assembly,very likely for you to study MASM, TASM and also the course <*principles& peripheral technology of microprocessor*>.()
5+
Language support for DOS assembly,suitable for studying MASM/TASM and the course <*principles& peripheral technology of microprocessor*>.
66

7-
- Support both **TASM and MASM**: you can choose MASM or TASM in the preference
8-
- **Editor Menu**: run and debug with right click on the VSCode editor panel
9-
- **Convenient**: related tools packaged in the extension. Just install and right click (recommand to use this ext in windows otherwise you should install dosbox first)
10-
- **Diagnose**: process the output of ASM tools and ouput them in **VSCode
11-
- **Hover**:show information of where the curser is
12-
- Welcome [issue](https://github.com/xsro/masm-tasm/issues) and PR to build a better extension with your help.
13-
- Some interesting code your may need:[masm-tasm wiki](https://github.com/xsro/masm-tasm/wiki/dosbox)
7+
- Offer *grammar*,basic *outline* view and *hover* support for DOS assembly language
8+
- Support both **TASM and MASM** assembler tools: choose MASM or TASM in the preference
9+
- In **Editor Menu**: run and debug assembly with right click on the VSCode editor panel
10+
- **Convenient**: related tools packaged in the extension. Just install and right click
11+
- **Diagnose**: process the output of ASM tools and ouput them in VSCode
12+
- **Note**: Currently not support multi files assembly
1413

15-
Thanks to [Roncho](https://marketplace.visualstudio.com/publishers/Roncho) 's extension [Assembly (TASM)](https://marketplace.visualstudio.com/items?itemName=Roncho.assembly-8086) and [Woodykaixa](https://github.com/Woodykaixa)'s [masm-code](https://github.com/Woodykaixa/masm-code). This extension now contribute an assembly language.
14+
Thanks to [Roncho](https://marketplace.visualstudio.com/publishers/Roncho) 's extension [Assembly (TASM)](https://marketplace.visualstudio.com/items?itemName=Roncho.assembly-8086) and [Woodykaixa](https://github.com/Woodykaixa)'s [masm-code](https://github.com/Woodykaixa/masm-code). Welcome [issue](https://github.com/xsro/masm-tasm/issues) and PR to build a better extension with your help.Here are some interesting code I use:[masm-tasm wiki](https://github.com/xsro/masm-tasm/wiki/dosbox)
1615

1716
## Features
1817

19-
when your are editing `.asm(.ASM)` files ,you can right click at the editor panel,then you will see several choices listed below:
18+
when you are editing `assembly` files ,you can right click at the editor panel,then you will see several choices listed below:
2019

21-
1. "Open dosbox": Open the dosbox. Copy current file to workspace as `D:\T.asm` in DOSBox. You can use command like `tasm T.asm` .[more info](https://github.com/xsro/masm-tasm/blob/master/doc/ASM_commands.md)
20+
1. "Open dosbox": Open the dosbox, prepare the environment(copy file to dosbox's D:\ and add tools to path),[more info](https://github.com/xsro/masm-tasm/blob/master/doc/ASM_commands.md)
2221
2. "Run ASM code": Compile and Run the program
2322
3. "Debug ASM code": Compile and Debug the program
2423

@@ -40,12 +39,41 @@ your file will be copied as `D:\T.ASM` in DOSBox. (The extension will copy your
4039

4140
![diagnose](https://github.com/xsro/masm-tasm/raw/master/pics/demo_diagnose_tasm.gif)
4241

42+
## Extension Settings
43+
44+
for more,please see the `preference->settings`
45+
46+
- `masmtasm.ASM.MASMorTASM` use `MASM` or `TASM` assembler in DOS emulator to run and debug assembly
47+
- `masmtasm.ASM.emulator` use dosbox or msdos-player as DOS emulator,defalut is DOSBox
48+
- `DOSBox` more stable
49+
- `msdos-player`quiet, it runs in command prompt(CMD). So it cannot support GUI like `TD.exe`
50+
- `auto` auto select
51+
1. use msdos-player to compile and link
52+
2. use DOSBox to run
53+
3. use msdos-player for MASM(debug)
54+
4. use DOSBox for TASM(TD)
55+
- `masmtasm.ASM.savefirst` save file first before using
56+
- `masmtasm.ASM.toolspath` custom path of your ASM tools. [more info](#about-tools)
57+
- `masmtasm.dosbox.CustomResolution`: size(resolution) of the dosbox window,for example `1024x960`
58+
59+
### About Tools
60+
61+
The assembler MASM and TASM can only run in 16-bit environment. So the extension use DOSBox and MSDOS-player to emulate the 16-bit environment.
62+
the extension has built in tools for windows. But if you need to use assembler or emulator of different version. You can oragnize your tools follow the structure bellow and add the you folder's path to `masmtasm.ASM.toolspath`
63+
64+
- tools:your tools folder name, you can add the path of it to settings `masmtasm.ASM.toolspath`
65+
1. `TASM`: TASM tools including `tasm.exe`,`tlink.exe`,`td.exe`
66+
2. `MASM`: MASM tools including `masm.exe`,`link.exe`,`debug.exe`
67+
3. `dosbox`: dosbox.exe and related files
68+
4. `player`: msdos.exe
69+
70+
Linux and other OS user do not need folder dosbox and player. Instead, we should make sure DOSBox can be opened by shell command `dosbox` (node: child_process.exec("dosbox"))
71+
4372
## Docs & Thanks & Licenses
4473

4574
- this extension is [MIT license](https://github.com/xsro/masm-tasm/blob/master/LICENSE).
46-
- thanks for [masm-code](https://github.com/Woodykaixa/masm-code),[msdos player](http://takeda-toshiya.my.coocan.jp/msdos),[dosbox](https://www.dosbox.com)
47-
- their [info and licences](https://github.com/xsro/masm-tasm/blob/master/doc/license_and_info.md)
48-
- [about the tools](https://github.com/xsro/masm-tasm/blob/master/doc/Toolspath.md)
75+
- thanks for [Roncho](https://marketplace.visualstudio.com/publishers/Roncho)'s [Assembly (TASM)](https://marketplace.visualstudio.com/items?itemName=Roncho.assembly-8086),[Woodykaixa](https://github.com/Woodykaixa)'s [masm-code](https://github.com/Woodykaixa/masm-code),[msdos player](http://takeda-toshiya.my.coocan.jp/msdos),[dosbox](https://www.dosbox.com)
76+
- [about the assembly and emulator tools](https://github.com/xsro/masm-tasm/blob/master/doc/Toolspath.md)
4977
- [some infomation :wiki](https://github.com/xsro/masm-tasm/wiki)
5078

5179
Enjoy!:smile:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "masm-tasm",
33
"displayName": "MASM/TASM",
44
"publisher": "xsro",
5-
"description": "DOS汇编语言开发环境,自带DOSBox安装即用,支持TASM/MASM工具",
6-
"version": "0.1.4",
5+
"description": "DOS汇编语言开发环境和语法支持,安装即用,自带DOSBox.exe和TASM/MASM工具",
6+
"version": "0.2.0",
77
"keywords":["dosbox","16位","汇编","微机原理","tasm","masm"],
88
"icon":"dosboxasm.png",
99
"engines": {

0 commit comments

Comments
 (0)