- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
俄罗斯方块的结构化汇编语言程序设计 structurized assembly language program design of tetris
专题论述
俄罗斯方块 的结构化汇编语日言目程1了=序设计
于龙海 ,罗辰杰 ,王晓萍 ,梁宜勇
(浙江大学 光 电信息工程学系,杭州 310027)
摘要:通过引入变量定义,规范子函数、中断函数编写的结构化汇编语言编程思路 ,能够较好地解决汇编程序开发 中存
在的代码晦涩和易发生寄存器 内存冲突的问题 。通过俄 罗斯方块游戏的jr-编程序设计,从 变量定义、子函数设计、中断
函数设计等方面探讨 了汇编语言的结构化设计思想和具体方法 。详细介绍 了俄罗斯方块软件实现的具体方法以及程序
测试结果。文 中采用的;r-编语言编程 的结构化思维方法 ,对于编写汇编大程序具有指导和借鉴作用。
关键词 :AT89C51;汇编程序 ;结构化 ;俄罗斯方块
中图分类号 :TP368.1 文献标识码 :A
StructurizedAssemblyLanguagePrOgram DesignofTetris
YuLonghai,LuoChenjie,WangXiaoping,LiangYiyong
(DepartmentofOpticalEngineering,Zh@angUniversity,Hangzhou310027,China)
Abstract:Programswritteninassemblylanguagecodeareincomprehensibleandpronetotheriskofregistermemoryconflict.Through
theintroductionofvariabledefinitions,standardizedsubroutine,interruptfunctionwritestructuredassemblylanguageprogrammingide—
as,wecansolvethecompilationoftheaboveproblems.Inthispaper,throughthedesignofassemblerTetrisgame,includingthedefini—
tionofvariables,subroutinesandinterruptfunction,weresearchthestructuredassemblylanguagedesignandspecificmethods,detailed
thespecificsoftwareapplicationmethodsofTetrisandtestresults.Thestructuredtheoryofassemblylanguageprogrammingisanim—
portantguideandreferencetOalargeassemblerprogram.
Keywords:AT89C51;assemblyprogram ;structured;Tetris
具体的内存单元操作,而每个单元有 16进制的地址码,因
引 言 此所有变量都可人为地 由该地址码表示。但是汇编语言
汇编语言是一种用助记符表示的面 向机器的程序设 提供了EQU伪指令 ,可以将特定的内存空间标记为特定
计语言。助记符使得原来的机器语言变得相对较为直观、 的名称 ,这就为变量定义提供了可能。而使用 EQU伪指
易懂 、易用 ,并且汇编语言与机器语言具有一一对应 的关 令的好处就是将抽象的物理 内存分化为具体的变量名,避
系,因此它继承了机器语言直接、快速、高效的特点 ,是一 免了内存冲突,同时又增加了程序可读性
种底层语言。但是汇编语言的劣势也十分明显 ,如对于编 1.2 子函数设计
写较大的程序需要考虑诸多硬件存储器的分配 以及 中断 子函数对程序结构化的作用是其可简化主函数的编
程序的处理等非常细节的问题,否则容易出现寄存器 冲
您可能关注的文档
- 多摄像机之间基于区域sift描述子的目标匹配 region-sift descriptor based correspondence between multiple cameras.pdf
- 多容耦合对象液位控制的dmc算法在dcs中的实现 realization of dmc arithmetic of multi-capacity coupling object level control in dcs.pdf
- 多生成树协议实现负载均衡实验的设计与实施 design and implementation of load balance experiment using multiple spanning tree protocol.pdf
- 多射频无线mesh网络组播端到端时延建模与优化 modeling and optimization of muiticast end-to-end delay in multi-radio wireless mesh networks.pdf
- 多声传感器异步融合算法 the asynchronous fusion algorithm for acoustic sensors.pdf
- 多声源环境下的鲁棒说话人识别 robust speaker recognition in multi-source environment.pdf
- 多摄像机图像间的稳定切换控制 stable switch control for multiple cameras robot system.pdf
- 多色ssor-pcg的mpi+openmp混合编程实现 hybrid programming implementation of mpi+openmp on multicolor ssor-pcg.pdf
- 多时滞不确定系统的模糊保性能h∞控制 fuzzy guaranteed-cost h∞ control of uncertain systems with multiple time-delays.pdf
- 多生理参数管制负荷模型下的扇区bsp划分 sectorization with bsp method under multiple physiological parameters control-load model.pdf
- 多总线数据记录与回放系统的设计与实现 design and implementation of multi-bus data recording and playback system.pdf
- 俄罗斯方块游戏中关键算法的分析与实现 analysis and realization of algorithm for tetris game.pdf
- 锇聚合物修饰的低浓度葡萄糖传感器制备与响应特性研究 fabrication and analytical characterization of osmium redox polymer based biosensor to low concentration glucose.pdf
- 厄尔尼诺现象和拉尼娜现象的成因分析和它们对气候变化的影响 analysis on the cause of el nino and la nino phenomenon and their influence on climate change.pdf
- 恶意代码的函数调用图相似性分析 similarity analysis of malware's function-call graphs.pdf
- 恶意网页从原理到防御 principle and defense for malicious web pages.pdf
- 恶意软件动态分析云平台 malware dynamic analysis cloud.pdf
- 恶意模型下隐私保护点积的研究 research on privacy preserving inner product for malicious model.pdf
- 恶意软件鉴别技术及其应用 malware identification technique and its applications.pdf
- 恶意软件检测中解决样本不平衡问题的策略 malware detection in the strategy to solve the problem of unbalanced samples.pdf
文档评论(0)