当前位置:网站首页>[BX]和loop
[BX]和loop
2022-08-11 02:50:00 【每天一道题】
[bX]
1.[bx]表示一个内存单元,他的偏移地址在bx中,段地址默认在DS中。
2.描述性符号“()”表示一个寄存器或内存单元中的内容。
3.idata表示常量。
Loop
1.指令格式:
loop 标号
2.CPU执行loop指令的操作:
<1>(cx) = (cx) - 1。
<2>判断cx中的值,不为0则转至标号处执行程序,如果为0则向下执行。
一些注意事项
1.计算ffff:0006单元中的数乘以3,结果存储在dx中。ffff:0006单元是一个字节单元,ax是一个16位寄存器,数据长度不一样,如何赋值?
ffff:0006单元向ax赋值,令(ah) = 0,(al) = (ffff6H)。
2.“mov ax,[0]”表示将ds:0处的数据送入ax中,但是在编译器中该指令却被当作“mov ax,0”处理。
解决方案:
边栏推荐
猜你喜欢
随机推荐
flink The object probably contains or references non serializable fields.
入职数字ic设计后的一些工作心得
IDE compilation error: Dangling metacharacter
Entity to Vo conversion
广州纸质发票再见!开住宿费电子发票即将全面取代酒店餐饮加油站发票
增加对 Textbundle 的支持
ifconfig与ip命令的比较
gRPC闭包调度器
Geogebra 教程之 04 Geogebra 小程序
Detailed explanation of new features of ES advanced array function syntax
CC0 vs. commercial IP: which model is better for NFTs?
Multi-threaded ThreadPoolExecutor
解决vim与外界的复制粘贴(不用安装插件)
What does the sanction of the mixer Tornado mean for the DeFi market?
CSAPP Data Lab
Add user error useradd: cannot open /etc/passwd
Js prototype and prototype chain and prototype inheritance
ARM development (4) How to read the chip manual for novice Xiaobai, bare metal driver development steps and pure assembly to achieve lighting, assembly combined with c lighting, c to achieve lighting
八.数据的存储
2022茶艺师(中级)考试试题及模拟考试









