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

推荐订阅源

Y
Y Combinator Blog
Jina AI
Jina AI
雷峰网
雷峰网
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
美团技术团队
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
博客园 - Franky
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
量子位
IT之家
IT之家
人人都是产品经理
人人都是产品经理
博客园_首页
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - 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 王爽汇编 Lab 13 Question 1, 用两个程序实现 Spring.NET Installation and setup the first program 王爽汇编语言 实验11 王爽汇编语言 检测点11.2 王爽 汇编语言程序课程设计1 王爽 汇编语言程序设计实验10,题三,数值转换。(Assembly experiment Convert HEX to Decimal and Show on screen ) 王爽 汇编语言程序设计 检测点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 using vb.net read unix style text file How to install autotrace in fontforge My first postscript program .net 2 config A generic winform skeleton support interactive UI during large job process
王爽 汇编语言程序设计 实验9 (Assembly Language Study)
IT 笔记 · 2011-08-02 · via 博客园 - IT 笔记

自己写的,可以实现练习题的要求,而且个人感觉比网上常见的答案还精炼一些。

assume cs:codesg, ds:data
data segment
    db 
'welcome to masm!'
    db 
00000010B,00100100B,01110001B 
    dw 0b86eh,0b878h,0b882h  
data ends
 
codesg segment
start:  
    
mov cx, 3    
    
s1:      
        
mov ax, data ;set data address
        mov ds, ax         
        
mov si, cx   ;set line in ds
        mov ah, data:[15+si]  ;get font 00000010B,00100100B,01110001B
        ADD si,cx    ; Set si to be 6,4,2
        mov ss, data:[17+si] ;get line position of 0b86eh,0b878h,0b882h        push cx
        
mov cx, 16
        
mov bx, 0
        
mov si, 0   
        
s:     
            
mov al, ds:[bx];individual char from 'welcome to masm!' 
            mov ss:[si+40], ax ; this DX should 'line position'    
            inc bx
            
add si, 2
        loop s
        
pop cx 
    loop  s1
    
mov ax, 4c00h
    
int 21h
codesg ends

end start