当前位置:网站首页>汇编语言-王爽 第11章 标志寄存器-笔记
汇编语言-王爽 第11章 标志寄存器-笔记
2022-06-27 05:45:00 【执手听落花】

add128: push ax
push cx
push si
push di
sub ax, ax ;将CF设置为0
s: mov ax, [si]
adc ax, [di]
mov [si], ax
inc si
inc si
inc di
inc di
loop s
pop di
pop si
pop cx
pop ax
ret










assume cs:codesg
datasg segment
db "Beginner's All-purpose Symbolic Instruction Code.",0
datasg ends
stack segment
db 16 dup(0)
stack ends
codesg segment
begin:
mov ax,stack
mov ss,ax
mov sp,16
mov ax,datasg
mov ds,ax
mov si,0
call letterc
mov ax,4c00h
int 21h
letterc:
pushf
push cx
push si
s:
mov ch,0
mov cl,ds:[si]
jcxz exit
cmp byte ptr ds:[si],61h
jb next_char
cmp byte ptr ds:[si],7Ah
ja next_char
and byte ptr ds:[si],11011111B
next_char:
inc si
jmp short s
exit:
pop si
pop cx
popf
ret
codesg ends
end begin
边栏推荐
猜你喜欢

Edge在IE模式下加载网页 - Edge设置IE兼容性

IAR systems fully supports Centrino technology 9 series chips

程序猿学习抖音短视频制作

Using domain name forwarding mqtt protocol, pit avoidance Guide

leetcode298周赛记录

双位置继电器RXMVB2 R251 204 110DC

Junda technology - centralized monitoring scheme for multi brand precision air conditioners
软件测试年终总结报告模板

Gao Xiang slam14 lecture - note 1

多线程基础部分Part2
随机推荐
openresty使用文档
Reading graph augmentations to learn graph representations (lg2ar)
什么是BFC?有什么用?
Cognition - how to fill in 2022 college entrance examination volunteers
Implementation of easyexcel's function of merging cells with the same content and dynamic title
Py2neo basic syntax
Logu p4683 [ioi2008] type printer problem solving
C语言实现定时器
【Cocos Creator 3.5.1】input. Use of on
Leetcode99 week race record
IAR Systems全面支持芯驰科技9系列芯片
表单校验 v-model 绑定的变量,校验失效的解决方案
Machunmei, the first edition of principles and applications of database... Compiled final review notes
Opencv implements object tracking
【Cocos Creator 3.5.1】event.getButton()的使用
双位置继电器XJLS-8G/220
Avoid asteroids
多线程基础部分Part 1
【FPGA】UART串口_V1.1
【FPGA】基于bt1120时序设计实现棋盘格横纵向灰阶图数据输出