当前位置:网站首页>汇编语言——内存定位的方法
汇编语言——内存定位的方法
2022-04-21 06:37:00 【小学五年级在读的蒟蒻】
汇编语言——内存定位的方法
大家好,我是小学五年级在读的蒟蒻,专注于后端,一起见证蒟蒻的成长,您的评论与赞与关注是我的最大动力,如有错误还请不吝赐教,万分感谢。一起支持原创吧!纯手打有笔误还望谅解。
-
内存的寻址 方式
[idata],使用常量来表示地址,可直接用于定位一个内存单元
[bx],一个变量来表示内存地址,可间接定位一个内存单元
[bx+idata],用一个变量和常量来表示地址,可在一个起始地址的位置上用变量定位一个内存单元
[bx+si],用两个变量表示地址
[bx+si+idata],用两个变量和一个常量表示地址
-
将datasg段中每个菜单的首字母改为大写
assume cs:codesg,ds:datasg datasg segment db '1. file ' db '2. edit ' db '3. search ' db '4. view ' db '5. options ' db '6. help ' datasg ends codesg segment -
内存定位方法
将datasg的首地址放入ds中,发现每个单词的首字母都是在每行的第四列,所以使用一个常量定位到每行的第四列,使用一个变量定位每个行。使用[bx+idata]来定位并使用and al,11011111B来修改字母
-
代码实现
assume cs:codesg,ds:datasg datasg segment db '1. file ' db '2. edit ' db '3. search ' db '4. view ' db '5. options ' db '6. help ' datasg ends codesg segment start:mov ax,datasg mov ds,ax mov bx,0 mov cx,6 s:mov al,[bx+3] and al,11011111B mov [bx+3],al add bx,16 loop s codesg ends end start
-
版权声明
本文为[小学五年级在读的蒟蒻]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_44229867/article/details/121949279
边栏推荐
猜你喜欢

【WPF】利用Ellipse或Rectangle制作圆形进度条

Longxun series video conversion, lt9211, lt8918, functions: LVDS to bt656, LVDS to Mipi (CSI \ DSI) RGB to Mipi (DSI \ CSI) bt656 \ 601 \ 1120 to hdmi1 4\DVI

论文阅读:Social Media and Fake News in the 2016 Election

Define a standard class

(2022.1.31-2022.2.14)模板模式解析

Convergencewarning: linear failed to converge, increase the number of iterations

NP, OSPF stub area

【C#】文件操作

信息加密与信息摘要

Set up MySQL master-slave replication, read-write separation, one master and one slave
随机推荐
ConvergenceWarning: Liblinear failed to converge, increase the number of iterations解决辦法
Ms1836s, HDMI to CVBS, video converter, HDMI receiver, built-in MCU and memory
论文阅读:Measuring the Global Recursive DNS Infrastructure: A View From the Edge
Audio power amplifier, ns4165b single channel 5.3w class AB \ D power amplifier, mainly replacing cs8571, cs8871 and cs5218 of Zhipu core and haa2018 of hailichuang
NP、NSSA区域
Guanghuaxin audio codec Daquan cjc4344, cjc8988, cjc5340, cjc6811 guanghuaxin audio codec, cjc4344, cjc8988, cs5340
论文阅读:Domain Name Encryption Is Not Enough: Privacy Leakage via IP-based Website Fingerprinting
Convergencewarning: linear failed to converge, increase the number of iterations
Nmap扫描和Scapy项目
BGP 自动路由聚合
Jichuang north, chipone, icn6211, icn6202, Mipi to RGB, Mipi to LVDS, maximum resolution 1080p, Mipi DSI conversion, Mipi conversion,
BGP 认证功能
Ruiyuan ry8132 and ry9140 DCDC are mainly replaced by tps563200 and tps563201 of Ti, mp1471 and mp1653 of Xinyuan, and details of sy8104 power chip of silijie
三层交换机与路由器对接上网
NP, OSPF stub area
IP组播基本概念
数据库死锁总结:(3.7-3.13)
Using Wireshark to restore pcap data stream to picture file
Domestic Poe, rpc304, replace ip802, ip804 and ip808, replace tps23861, ltc4292, pd69204 and si3459, start domestic Poe power supply and PSE, and ruipukang domestic Ethernet power supply and interface
Use the security vulnerability detection tool Metasploit to lift the telnet login right of the target metasploitabile2