You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extension is modified from "[masm-code](https://github.com/Woodykaixa/masm-code)", focusing on the interaction with DOS emulator (DOSBox and msdos-player). It is helpful 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*>.
6
6
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)
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
10
11
-**Diagnose**: process the output of ASM tools and ouput them in VSCode
11
-
- Welcome [issue](https://github.com/xsro/masm-tasm/issues) and PR to build a better extension with your help.
12
-
- Some interesting code your may need:[masm-tasm wiki](https://github.com/xsro/masm-tasm/wiki/dosbox)
12
+
-**Note**: Currently not support multi files assembly
13
13
14
-
Thanks to [Roncho](https://marketplace.visualstudio.com/publishers/Roncho)'s extension [Assembly (TASM)](https://marketplace.visualstudio.com/items?itemName=Roncho.assembly-8086). This extension now support assembly language using codes from it.
15
-
Also, this extension may also work with extensions like: [MASM](https://marketplace.visualstudio.com/items?itemName=bltg-team.masm)、[masm-code](https://marketplace.visualstudio.com/items?itemName=kaixa.masm-code)、[x86 and x86_64 Assembly](https://marketplace.visualstudio.com/items?itemName=13xforever.language-x86-64-assembly)
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)
16
15
17
16
## Features
18
17
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:
20
19
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)
22
21
2. "Run ASM code": Compile and Run the program
23
22
3. "Debug ASM code": Compile and Debug the program
24
23
@@ -40,12 +39,41 @@ your file will be copied as `D:\T.ASM` in DOSBox. (The extension will copy your
-`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
+
43
72
## Docs & Thanks & Licenses
44
73
45
74
- 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)
- 这个插件专注于汇编的编译运行调试环节,推荐结合汇编语法支持(高亮、代码片段等)的插件一起使用,如:[MASM](https://marketplace.visualstudio.com/items?itemName=bltg-team.masm)、[TASM](https://marketplace.visualstudio.com/items?itemName=Roncho.assembly-8086)、[masm-code](https://marketplace.visualstudio.com/items?itemName=kaixa.masm-code)、[x86 and x86_64 Assembly](https://marketplace.visualstudio.com/items?itemName=13xforever.language-x86-64-assembly)等。
0 commit comments