当前位置:网站首页>dosbox第一次使用
dosbox第一次使用
2022-07-06 09:17:00 【劲腰傩舞】
下载dosbox
提取码:6666
按照下图方式存放下载文件
解压dosbox
下载
默认就完事了
最好在桌面上添加一个dosbox的快捷方式
记住这里的MASM的路径
修改dosbox的配置
修改配置是为了让dosbox能够直接使用到MASM文件中的命令
就是将dosbox和MASM联系起来(也就是所谓的挂载
配置文件在这里(AppData是隐藏文件,需要关闭隐藏才能看见)
然后用记事本打开
下拉到最后这里
添加
mount c d:/asm/MASM
set PATH=z:\;c:\;
c:
第一行最后一个部分改为你自己的MASM路径
添加后保存
这里添加的目的是让dosbox每次打开都能自动运行这几行代码
auto execute自动执行
每次打开就会进行一次与masm的连接
写一个asm汇编语言的程序
在MASM文件夹下建立一个文本文件
内容如下
; 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
最后修改后缀为asm
保存
打开dosbox
依次输入
masm eg101.asm
link eg101.obj
eg101
便可
中间有等待输入
直接回车就行
文中使用的字体和颜色
< font face=“微软雅黑” color=#0099ff>nothing
边栏推荐
- 基於Redis的分布式ID生成器
- Dead loop in FreeRTOS task function
- [offer9]用两个栈实现队列
- I2C bus timing explanation
- gcc 编译选项
- Inline detailed explanation [C language]
- @The difference between Autowired and @resource
- . elf . map . list . Hex file
- Important methods of array and string
- JS Title: input array, exchange the largest with the first element, exchange the smallest with the last element, and output array.
猜你喜欢
Working principle of genius telephone watch Z3
ARM PC=PC+8 最便于理解的阐述
History object
open-mmlab labelImg mmdetection
【ESP32学习-2】esp32地址映射
NRF24L01故障排查
Symbolic representation of functions in deep learning papers
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
Arduino uno R3 register writing method (1) -- pin level state change
AMBA、AHB、APB、AXI的理解
随机推荐
ES6语法总结--下篇(进阶篇 ES6~ES11)
MySQL replacement field part content
JS function promotion and declaration promotion of VaR variable
Imgcat usage experience
By v$rman_ backup_ job_ Oracle "bug" caused by details
STM32 how to locate the code segment that causes hard fault
@The difference between Autowired and @resource
VIM command line notes
Common properties of location
Oppo vooc fast charging circuit and protocol
如何给Arduino项目添加音乐播放功能
MP3mini播放模块arduino<DFRobotDFPlayerMini.h>函数详解
About using @controller in gateway
[esp32 learning-1] construction of Arduino esp32 development environment
(三)R语言的生物信息学入门——Function, data.frame, 简单DNA读取与分析
Postman 中级使用教程【环境变量、测试脚本、断言、接口文档等】
Cannot change version of project facet Dynamic Web Module to 2.3.
列表的使用
程序员老鸟都会搞错的问题 C语言基础 指针和数组
E-commerce data analysis -- salary prediction (linear regression)