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

推荐订阅源

D
Darknet – Hacking Tools, Hacker News & Cyber Security
Jina AI
Jina AI
博客园_首页
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
Forbes - Security
Forbes - Security
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
N
News | PayPal Newsroom
S
Security Archives - TechRepublic
量子位
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
C
Cisco Blogs
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
Scott Helme
Scott Helme
S
Securelist
Security Latest
Security Latest
爱范儿
爱范儿
TaoSecurity Blog
TaoSecurity Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
Intezer
L
LINUX DO - 最新话题
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
美团技术团队
Know Your Adversary
Know Your Adversary
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
PCI Perspectives
PCI Perspectives
月光博客
月光博客
T
Tailwind CSS Blog
Cloudbric
Cloudbric
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
K
Kaspersky official blog
D
DataBreaches.Net
博客园 - 【当耐特】
有赞技术团队
有赞技术团队

博客园 - IT 笔记

Subversion Revert File will not be shown in Modification Surprise vb.net WinForm don't require instance to access the instance value Properties.Settings show error 'System.Windows.Forms.PropertyStore' does not contain a definition for 'Settings' Add Image in MS Report RDLC by using Embedded Image Spring.NET Installation and setup the first program 王爽汇编语言 实验11 王爽汇编语言 检测点11.2 王爽 汇编语言程序课程设计1 王爽 汇编语言程序设计实验10,题三,数值转换。(Assembly experiment Convert HEX to Decimal and Show on screen ) 王爽 汇编语言程序设计 实验9 (Assembly Language Study) 王爽 汇编语言程序设计 检测点9.1 第2题 The NTVDM CPU has encountered an illegal instruction. CS:0006 IP:130a .... select files by multiple extension name Access Denied when running Spring.IocQuickStart.MovieFinder - IT 笔记 using vb.net read unix style text file How to install autotrace in fontforge My first postscript program .net 2 config - IT 笔记 A generic winform skeleton support interactive UI during large job process
王爽汇编 Lab 13 Question 1, 用两个程序实现
IT 笔记 · 2011-12-18 · via 博客园 - IT 笔记

如果要用两个程序实现, 必须用实DOS,或者用DosBox。 我是用DosBox实现的。

安装和中断例程代码如下

assume cs:code 
code segment
start:    ;installtion
        mov ax, cs
        mov ds, ax
        mov si, offset shwtxt
        mov ax, 0
        mov es, ax
        mov di, 200h
        mov cx, offset shwtxtend-offset shwtxt
        cld
        rep movsb
        
        mov ax, 0
        mov es, ax
        mov word ptr es:[7ch*4], 200h
        mov word ptr es:[7ch*4+2],0  
        mov ax, 4c00h
        int 21h
        
shwtxt:    push cx
        push si
        push bx
        push ax 
        mov ah, 160 
        mul dh
        mov bx, ax 
        mov ah, 32
        mul dl
        Add ax, bx         
        mov di, ax
        pop ax
        pop bx
        mov ax, 0b800h
        mov es, ax 
        mov al, cl
nxtchr:    mov cl, [si]        
        mov ch, 0
        jcxz ok 
        mov ch, al
        
        mov es:[di], cx
        add di, 2
        inc si
        jmp short nxtchr 
    ok:    pop si
        pop cx    
        iret 
shwtxtend: nop
code ends

end start  

运行和使用例程的程序如下

assume cs:code
data segment
    db "welcome to masm!",0
data ends
code segment
start:    mov dh, 12
        mov dl, 8
        mov cl, 01110001B
        mov ax, data
        mov ds, ax
        mov si, 0
        int 7ch
        
        mov ax, 4c00h
        int 21h 
code ends

end start