assembly - 使用 DOS 在 Fasm 中编写 hello,world 到控制台
问题描述
我正在用 FASM 中的 DOS 编写“Hello,World”来控制台。但它不适用于 x64。
我尝试为 x64 编写程序,但它也不起作用。
我的错在哪里?
这是我的代码:
format PE64
org 100h
mov ax, cs
mov ds, ax
mov dx, msg
mov ah, 9h
int 21h
mov ah, 4c00h
int 21h
msg db 'Hello, World!$'
解决方案
推荐阅读
- r - 带有日期输入或下拉列表的闪亮可编辑 DT 表
- jenkins - 詹金斯错误在构建无效参数“桶”,你的意思是“条目”吗?
- server - 在单人游戏中引入多人游戏\有没有可能把现成的单人游戏做成多人游戏?
- apache-nifi - 将属性内的值拆分为多个流文件
- shell - 使用 AWK 转换不同类型的字符串
- javascript - 从 Firebase 云存储中检索文件时出错
- webpack - 如何在 ejs 文件中使用带有资产/源的内联 webpack 加载器
- c# - ConnectionString 属性尚未初始化。XUnit .net 核心 c#
- azure-active-directory - 具有自定义身份验证登录、注销、自动注销和自定义端点的 Azure API 管理?
- mysql - 如何使用子查询更新 json 列?