当前位置:网站首页>汇编语言-王爽 第8章 数据处理的两个基本问题-笔记
汇编语言-王爽 第8章 数据处理的两个基本问题-笔记
2022-06-27 05:45:00 【执手听落花】




data segment
db '1975', '1976','1977', '1978','1979', '1980','1981', '1982','1983'
db '1984', '1985','1986', '1987','1988', '1989','1990', '1991','1992'
db '1993', '1994','1995'
;以上表示21年的21个字符串
dd 16,22,382,1356,2390,8000,16000,24486,50065,97479,140417,197514
dd 345980,590827,803530,1183000,1843000,2759000,3753000,4649000,5937000
;以上表示21年公司总收入的21个dword型数据
dd 3,7,9,13,28,38,130,220,476,778,1001,1442,2258,2793,4037,5635,8226
dd 11542,14430,15257,17800
;以上表示21年公司雇员人数的21个word型数据
data ends
table segment
db 21 dup ('year summ ne ?? ')
table ends
code segment
start: mov ax, data
mov ds, ax
mov ax, table
mov es, ax
mov bx, 0
mov si, 0
mov di, 0
mov cx, 21
s: mov ax, [si]
mov es:[bx], ax
mov ax, [si+2]
mov es:[bx+2]
mov ax, [si+84]
mov es:[bx+5], ax
mov ax, [si+86]
mov es:[bx+7], ax
mov ax, [di+168]
mov es:[bx+0ah], ax
mov ax, [si+84]
mov dx, [si+86]
div word ptr [di+168]
mov word ptr es:[bx+0dh], ax
add bx, 16
add si, 4
add di, 2
loop s
mov ax, 4c00h
int 21h
code ends
end start
边栏推荐
- C language implementation timer
- Webrtc Series - Network Transport 7 - ice Supplement nominations and ice Modèle
- Open the door small example to learn ten use case diagrams
- Codeforces Round #802 (Div. 2)
- NEON优化1:软件性能优化、降功耗怎么搞?
- Junda technology - centralized monitoring scheme for multi brand precision air conditioners
- [FPGA] realize the data output of checkerboard horizontal and vertical gray scale diagram based on bt1120 timing design
- Get system volume across platforms in unity
- 1317. 将整数转换为两个无零整数的和
- leetcode299周赛记录
猜你喜欢

多线程基础部分Part2

KubeSphere 集群配置 NFS 存储解决方案-收藏版

Assembly language - Wang Shuang Chapter 13 int instruction - Notes

NLP-D62-nlp比赛D31&刷题D15
软件测试年终总结报告模板

Niuke practice 101-c reasoning clown - bit operation + thinking

How JQ gets the reciprocal elements

Avoid asteroids

Implementation of easyexcel's function of merging cells with the same content and dynamic title

LeetCode-515. 在每个树行中找最大值
随机推荐
[FPGA] design and implementation of frequency division and doubling based on FPGA
【FPGA】基于bt1120时序设计实现棋盘格横纵向灰阶图数据输出
Go log -uber open source library zap use
Niuke practice 101-c reasoning clown - bit operation + thinking
【QT小作】使用结构体数据生成读写配置文件代码
Get system volume across platforms in unity
Webrtc series - Nomination and ice of 7-ice supplement for network transmission_ Model
expect脚本中使用scp命令的方法,expect脚本中scp命令获取不了值的问题完美解决方法
Zener diode zener diode sod123 package positive and negative distinction
[nips 2017] pointnet++: deep feature learning of point set in metric space
Reading graph augmentations to learn graph representations (lg2ar)
Formation and release of function stack frame
Remapping (STM32)
Epics record reference 5 -- array analog input recordarray analog input (AAI)
竣达技术丨多品牌精密空调集中监控方案
[FPGA] realize the data output of checkerboard horizontal and vertical gray scale diagram based on bt1120 timing design
Open the door small example to learn ten use case diagrams
30个单片机常见问题及解决办法!
Wholestagecodegen of spark
Senior [Software Test Engineer] learning route and necessary knowledge points