zoukankan
html css js c++ java
汇编实验3
练习1
第1步,编写汇编源程序t1.asm, 源程序代码如图所示。
第2步——(1)运行结果:输出数字36
(2)将line4和line9的寄存器dl值改为6和8:结果输出数字68
推测:本段代码含义为输出line4和line9的寄存器dl中的数字
(3)debug调试该文件
① 使用 r 命令查看。观察寄存器 cx 的值是 多少;观察寄存器 ds 和 cs 的值是多 少,它们之间是否满足关系(cs)=(ds)+10H? 结果如下图
② PSP(程序段前缀)的头两个字节是CD 20, 用debug查看PSP的内容是否如此
③使用 u 命令对 t1.exe 进行反汇编
④ 使用 t 命令和 p 命令(遇到 int 命令时,用 p 命令)单步调试
练习2
(1)编写如下程序
结果为:左上角输出红色的数字36
(2)试将源代码中line7的0433h→0432h, line10 的 0436h→0439h
结果为:左上角输出红色的数字29
(3)将源代码中line7的0433h→0333h, line10 的 0436h→0336h,
结果为:左上角输出蓝色的数字36
推测:line7和line10分别控制着输出数字的第一位和第二位,诸如0439h,其中04两位控制输出颜色,39两位控制输出的数字
查看全文
相关阅读:
Spring中的InitializingBean接口的使用
解决MyBatis异常:The content of elements must consist of well-formed character data or markup.
idea2019版与maven3.6.2版本不兼容问题
IntelliJ IDEA更新maven依赖包
JVM里的垃圾回收机制
ASP.NET Core 中文文档 第四章 MVC(2.2)模型验证【转载】
asp.net mvc Model验证总结及常用正则表达式【转载】
SQL一次性插入大量数据【转载】
ASP.NET Core依赖注入解读&使用Autofac替代实现【转载】
WCF、WebAPI、WCFREST、WebService之间的区别【转载】
原文地址:https://www.cnblogs.com/MrWang-nextdoor/p/9972934.html
最新文章
Docker容器跨主机通信之:直接路由方式
Linux—添加开机启动(服务/脚本)
KONG网关 — KongA管理UI使用(转载)
利用nginx搭建静态资源服务器
scp复制文件,过滤多个目录或者文件 rsync
linux下mysql数据的导出和导入
mysql use index() 优化查询
like SQL注入与防止 (bin2hex unhex)
Linux如何通过命令查看日志文件的某几行(中间几行或最后几行)
vim下ctrl + s 僵死问题的解决
热门文章
找不到mysql.sock,mysql.sock丢失问题解决方法
linux tail命令的使用方法详解
nginx File not found 错误
nginx,php-fpm的安装配置
nginx 访问localhost老是下载文件不能打开网页什么情况?
MySQL:系统页面常量表设计
MySQL:系统参数表设计
MySQL:油品代码表、油品规格代码表设计
MySQL:地区代码表(2019年9月中华人民共和国县以上行政区划代码)设计
MySQL:地区代码表(老版)设计
Copyright © 2011-2022 走看看