当前位置:网站首页>汇编语言-王爽 第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
边栏推荐
- Py2neo basic syntax
- Two position relay rxmvb2 r251 204 110dc
- leetcode299周赛记录
- Terminal in pychar cannot enter the venv environment
- Spark 之 WholeStageCodegen
- 函数栈帧的形成与释放
- 洛谷P4683 [IOI2008] Type Printer 题解
- Formation and release of function stack frame
- When STM32 turns off PWM output, it is a method to fix IO output at high or low level.
- 多线程基础部分Part 1
猜你喜欢
随机推荐
【合辑】点云基础知识及点云催化剂软件功能介绍
OpenCV的轮廓检测和阈值处理综合运用
[FPGA] UART serial port_ V1.1
【Cocos Creator 3.5.1】event.getButton()的使用
Remapping (STM32)
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
Asp. Net core6 websocket simple case
【Cocos Creator 3.5.1】input. Use of on
Reading graph augmentations to learn graph representations (lg2ar)
QListWidgetItem上附加widget
多线程基础部分Part2
Formation and release of function stack frame
693. 交替位二进制数
WebRTC系列-网络传输之7-ICE补充之提名(nomination)与ICE_Model
Pytest框架的执行规则
When STM32 turns off PWM output, it is a method to fix IO output at high or low level.
Add widget on qlistwidgetitem
Spark 之 built-in functions
思维的技术:如何破解工作生活中的两难冲突?
网易云音乐params和encSecKey参数生成代码









