惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

汇编

在浏览器使用 wasm 如何解决兼容性问题 C++中 i=i; 与 *p=i; 对应的汇编代码为什么不一样? - V2EX 汇编问题求解,这个问题我自己确实做不来 - V2EX 如何学习汇编语言? - V2EX Linux 下, global variable 在汇编里是什么时候被初始化的呢? Lock 指令到底有什么用? 求大神帮忙解答两个题,关于编程的,应付微机原理与应用过关考试的,不胜感激 6.828 lab1 Exercise 2 死循环问题 - V2EX 如何解决 ShellCode 中 call 所产生的 \x00 - V2EX 用 AMD64 汇编写的 web server - V2EX 来做个调查,各位V2exer 有多少学过汇编?有用过否? - V2EX Introduction to UNIX Assembly Programming - V2EX
有谁能来教我一下汇编的问题吗?我真的因为这个卡了好久了 - V2EX
tiRolin · 2023-11-30 · via 汇编

题目要求是这样的

在屏幕中的第 10 行到 15 行的第 20 列开始显示如下菜单: Arithmetic system of primary school

  1. add
  2. subtract
  3. multiply
  4. divide

然后我写出了下面的代码

assume cs:codesg, ds:datasg
datasg segment
    welcome db 'Arithmetic system of primary school$'
    file db '1. add$'
    insert db '2. subtract$'
    modify db '3. multiply$'
    exit db '4. devide$'
datasg ends
  
codesg segment
start:

    mov ax, datasg
    mov ds, ax
        
    mov ah, 02h 
    mov dh, 09h 
    mov dl, 13h 
    int 10h 
        
    lea dx, welcome
    mov ah, 09h
    int 21h 
        
    mov ah, 02h 
    mov dh, 10h 
    mov dl, 13h 
    int 10h 
        
    lea dx, file
    mov ah, 09h
    int 21h   
        
    mov ah, 02h 
    mov dh, 11h 
    mov dl, 13h 
    int 10h 
        
    lea dx, insert
    mov ah, 09h
    int 21h
        
    mov ah, 02h 
    mov dh, 12h 
    mov dl, 13h 
    int 10h 
        
    lea dx, modify
    mov ah, 09h
    int 21h
        
    mov ah, 02h 
    mov dh, 13h 
    mov dl, 13h 
    int 10h 
        
    lea dx, exit
    mov ah, 09h
    int 21h
        
    ;等待用户按键
    mov ah, 07h 
    int 21h 
        
    mov ah, 4ch 
    int 21h 
codesg ends
end start

这个代码可以正确显示出我要的内容,但是第一行和第二行之间总是有空行,具体表现如下

我真的想不明白问题出在哪里 不论是问百度还是问 gpt 都不太管用,我没法了所以来问问各位,希望有懂的救一下,我先谢谢各位了