当前位置:网站首页>First use of dosbox

First use of dosbox

2022-07-06 12:24:00 Vigorous waist Nuo dance

download dosbox

Network disk link

Extraction code :6666

Store the downloaded file in the following way

 Insert picture description here
decompression dosbox
download
It's over by default
It's best to add one on the desktop dosbox Shortcut to
Remember... Here MASM The path of

modify dosbox Configuration of

The configuration is modified to make dosbox It can be used directly MASM Commands in files
Will be dosbox and MASM Connect ( That is, the so-called mount
The configuration file is here (AppData It's a hidden file , You need to turn off hiding to see )
 Insert picture description here
Then use Notepad to open
Drop down to the end here
add to
 Insert picture description here

mount c d:/asm/MASM
set PATH=z:\;c:\;
c:

Change the last part of the first line to your own MASM route
Add and save
The purpose of adding here is to make dosbox These lines of code can be automatically run every time you open
auto execute Automatic execution
Each time it is opened, it will be connected with masm The connection of

Write a asm Assembly language program

stay MASM Create a text file under the folder
The contents are as follows

;                  2018y5m18d     dsdsds
;Hello World----from whatiwhere Ly
DATAS  SEGMENT
     STRING  DB  'Hello World!',13,10,'$'
 
DATAS  ENDS
 
CODES  SEGMENT
     ASSUME    CS:CODES,DS:DATAS
     
START:
     MOV  AX,DATAS
     MOV  DS,AX
     
     LEA  DX,STRING
     
     MOV  AH,9
     INT  21H 
               
     MOV  AH,4CH
     INT  21H
CODES  ENDS
    END   START

Finally, modify the suffix as asm
preservation
 Insert picture description here

open dosbox

Input in sequence
masm eg101.asm
link eg101.obj
eg101
Can then
There is waiting for input
Just go straight back

Fonts and colors used in the text
< font face=“ Microsoft YaHei ” color=#0099ff>nothing

原网站

版权声明
本文为[Vigorous waist Nuo dance]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060913550391.html