当前位置: 首页 > news >正文

手机开发网站建设网站服务器租赁费用表格

手机开发网站建设,网站服务器租赁费用表格,网站开发网站设计素材,百度 官网预处理阶乘和阶乘逆元Problem statement: 问题陈述#xff1a; Write an assembly language program for calculating the factorial of a number using 8086 microprocessor. 编写一个汇编语言程序#xff0c;以使用8086微处理器来计算数字的阶乘。 Assumptions: 假设 Write an assembly language program for calculating the factorial of a number using 8086 microprocessor. 编写一个汇编语言程序以使用8086微处理器来计算数字的阶乘。 Assumptions: 假设 Starting address of program: 0400 程序起始地址0400 Input memory location: 0500 输入存储器位置0500 Output memory location: 0600 and 0601 输出存储器位置0600和0601 Point to be noted: 需要注意的地方 If the Given Number is a 16-bit number, the AX register is automatically used as the second parameter and the product is stored in the DX:AX register pair. This means that the DX register holds the high part and the AX register holds the low part of a 32-bit number. 如果给定数字是16位数字则AX寄存器将自动用作第二个参数并且乘积存储在DXAX寄存器对中。 这意味着DX寄存器保持32位数字的高位而AX寄存器保持32位数字的低位。 Algorithm: 算法 Input the Number whose factorial is to be find and Store that Number in CX Register (Condition for LOOP Instruction) 输入要查找其阶乘的编号并将该编号存储在CX寄存器中(LOOP指令的条件) Insert 0001 in AX(Condition for MUL Instruction) and 0000 in DX 在AX(MUL指令的条件)中插入0001在DX中插入0000 Multiply CX with AX until CX become Zero(0) using LOOP Instruction 使用LOOP指令将CX与AX相乘直到CX变为零(0) Copy the content of AX to memory location 0600 将AX的内容复制到内存位置0600 Copy the content of DX to memory location 0601 将DX的内容复制到内存位置0601 Stop Execution 停止执行 Program: 程序 table { border-collapse: collapse; } table, th, td { border: 1px solid black; } table { border-collapse: collapse; } table, th, td { border: 1px solid black; } ADDRESSMNEMONICSCOMMENTS0400MOV CX, [0500]CX ← [0500]0404MOV AX, 0001AX ← 00010407MOV DX, 0000DX ← 0000040AMUL CXDX:AX ← AX * CX040CLOOP 040AGo To [040A] till CX-000410MOV [0600], AX[0600]←AX0414MOV [0601], DX[0601]←DX0418HLTStop Execution 地址 记忆 注释 0400 MOV CX[0500] CX←[0500] 0404 MOV斧0001 斧←0001 0407 MOV DX0000 DX←0000 040A MUL CX DXAX←AX * CX 040C 环040A 转到[040A]直到CX- 00 0410 MOV [0600]AX [0600]←AX 0414 MOV [0601]DX [0601]←DX 0418 HLT 停止执行 Explanation: 说明 MOV CX, [0500] loads 0500 Memory location content to CX Register MOV CX [0500]将0500内存位置内容加载到CX寄存器 MOV AX, 0001 loads AX register with 0001 MOV AX 0001将0001装入AX寄存器 MOV DX, 0000 loads DX register with 0000 MOV DX 0000将0000装入DX寄存器 MUL CX multiply AX with CX and store result in DX:AX pair MUL CX将AX与CX相乘并将结果存储在DXAX对中 LOOP 040A runs loop till CX not equal to Zero LOOP 040A循环运行直到CX不等于零 MOV [0600], AX store AX register content to memory location 0600 MOV [0600] AX将AX寄存器内容存储到内存位置0600 MOV [0601], DX store DX register content to memory location 0601 MOV [0601] DX将DX寄存器内容存储到存储器位置0601 HLT stops the execution of program HLT停止执行程序 翻译自: https://www.includehelp.com/embedded-system/calculate-the-factorial-of-a-number.aspx预处理阶乘和阶乘逆元
http://www.pierceye.com/news/707385/

相关文章:

  • 网站开发作用wordpress mysuc cms
  • 网站开发人员的职责是什么石家庄外贸建站公司
  • 内外外贸购物网站建设网站顶部下拉广告
  • 深圳企业网站建设服务平台销售推广语
  • 做网站要什么资料百度网盘登录
  • 聚牛网站建设公司北京seo优化推广
  • 成都网站公司网站建设东莞大岭山电子厂
  • python建立简易网站网站界面设计的分类有哪几种
  • 网络规划师考哪些内容优化设计卷子答案
  • 邢台网站关键词优化wordpress弹窗下载
  • 晋城市企业网站腾讯qq官网登录入口
  • 怎么给网站在百度地图上做爬虫一家专门做灯的网站
  • 河南焦作有做网站开发的公司吗xampp安装wordpress
  • python购物网站开发流程图win淘宝客wordpress主题模板
  • 江苏省建设执业网站个人做淘宝客网站有哪些
  • 浙江省建设厅门户网站咨询公司是干什么的
  • 哪个网站上可以做初中数学题wordpress 网校插件
  • html写手机网站制作网页用什么语言
  • 一站式网站建设价格百度网站
  • 招商网站建设多少钱企业形象墙
  • 医疗设备响应式网站免费素材库
  • 服务器如何搭建php网站网页美工设计从入门到精通
  • 淘宝的网站建设情况做企业平台的网站有哪些
  • 深圳网站建设公司设计公司做网站排名有用吗
  • 企业营销型网站建设厂家 天堂资源地址在线官网
  • 编写这个网站模板要多少钱便宜做网站公司
  • asp企业网站源码下载网页制作基础教程田田田田田田田田
  • 网站标题title怎么写网站建设建设公司有哪些
  • 辽宁移动网站网站域名注册费用
  • 深圳建网站兴田德润专业电商店铺首页设计