a_bit equ 20h ;个位数存放处 b_bit equ 21h ;十位数存放处 temp equ 22h ;计数器寄存器 star: mov temp,#0 ;初始化计数器 stlop: acall display inc temp mov a,temp cjne a,#100,next ;=100重来 mov temp,#0 next: ljmp stlop ;显示子程序 display: mov a,temp ;将temp中的十六进制数转换成10进制 mov b,#10 ;10进制/10=10进制 div ab mov b_bit,a ;十位在a mov a_bit,b ;个位在b mov dptr,#numtab ;指定查表启始地址 mov r0,#4 dpl1: mov r1,#250 ;显示1000次 dplop: mov a,a_bit ;取个位数 MOVC A,@A+DPTR ;查个位数的7段代码 mov p0,a ;送出个位的7段代码
上传时间: 2013-11-06
上传用户:lx9076
通过对ARM7TDMI体系结构、LPC2000系列ARM、μC/OS-II微小内核分析与程序设计基础的深入学习之后,对嵌入式系统有了清晰的了解。本课件将结合一个具体的实例--电脑自动打铃器来阐述嵌入式应用系统的工程设计方法。
上传时间: 2013-10-14
上传用户:tom_man2008
第八章 labview的编程技巧 本章介绍局部变量、全局变量、属性节点和其他一些有助于提高编程技巧的问题,恰当地运用这些技巧可以提高程序的质量。 8.1 局部变量 严格的语法尽管可以保证程序语言的严密性,但有时它也会带来一些使用上的不便。在labview这样的数据流式的语言中,将变量严格地分为控制器(Control)和指示器(Indicator),前者只能向外流出数据,后者只能接受流入的数据,反过来不行。在一般的代码式语言中,情况不是这样的。例如我们有变量a、b和c,只要需要我们可以将a的值赋给b,将b的值赋给c等等。前面所介绍的labview内容中,只有移位积存器即可输入又可输出。另外,一个变量在程序中可能要在多处用到,在图形语言中势必带来过多连线,这也是一件烦人的事。还有其他需要,因此labview引入了局部变量。
上传时间: 2013-10-27
上传用户:xieguodong1234
源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a,b,c依次序排列时,有13种不同的序列关系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要将n个数依序列,设计一个动态规划算法,计算出有多少种不同的序列关系, 要求算法只占用O(n),只耗时O(n*n).
上传时间: 2013-12-26
上传用户:siguazgb
c语言版的多项式曲线拟合。 用最小二乘法进行曲线拟合. 用p-1 次多项式进行拟合,p<= 10 x,y 的第0个域x[0],y[0],没有用,有效数据从x[1],y[1] 开始 nNodeNum,有效数据节点的个数。 b,为输出的多项式系数,b[i] 为b[i-1]次项。b[0],没有用。 b,有10个元素ok。
上传时间: 2014-01-12
上传用户:变形金刚
最新的grub2源代码,小型的os,可以作为学习写操作系统使用
上传时间: 2014-01-25
上传用户:水口鸿胜电器
grub 1.95 linux 的bootloader 源代码,小型的os,可以作为学习写操作系统使用
标签: bootloader linux grub 1.95
上传时间: 2013-12-17
上传用户:zhouli
Note that only the PORT is provided and it is assumed that you have the rest of the source for µ C/OS-II from the book or the upgrade.
上传时间: 2013-11-25
上传用户:er1219
This book is intended for embedded system programmers, consultants and students interested in real-time operating systems. μC/OS-II is a high performance, deterministic real-time kernel and can be embedded in commercial products (see Appendix F, Licensing). Instead of writing your own kernel, you should consider μC/OS-II. You will find, as I did, that writing a kernel is not as easy as it first looks.
标签: consultants programmers interested intended
上传时间: 2015-11-06
上传用户:l254587896
DeviceListener is an Objective-C example which demonstrates how to use the DiscRecording framework to listen for device plug and unplug events as well as media insertion events. Requirements: Mac OS X 10.2 and later Keywords: DiscRecording
标签: DeviceListener DiscRecording demonstrates Objective-C
上传时间: 2016-01-14
上传用户:日光微澜