没有数据NASM的运气 [英] Having no luck with data NASM

查看:59
本文介绍了没有数据NASM的运气的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

section .data

map db 1

section .text

start:
cmp byte [map], 1
je exit
jmp start

exit:
ret

我没有运气来读取数据.我的意思是我将其汇编为二进制dos COM格式,并且在启动时它会冻结.有人可以告诉我我在做什么错吗?

I'm having no luck reading data. What I mean is that I assemble to the binary dos COM format and when I start it it just freezes. Can someone tell me what i'm doing wrong?

推荐答案

DOS com文件应该在地址0x100处加载.您应该在代码的开头添加 org 0x100 行.

DOS com files are expected to be loaded at address 0x100. You should include line org 0x100 at the start of your code.

这篇关于没有数据NASM的运气的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆