摘要: >__________<:谢谢分享总结这么好的知识] 阅读全文
posted @ 2014-04-03 19:42 beautifulzzzz 阅读(4188) 评论(0) 推荐(2) 编辑
摘要: 1 ; multi-segment executable file template. 2 3 data segment 4 5 ends 6 7 stack segment 8 dw 128 dup(0) 9 ends10 11 code segment12 start:13 ; set segment registers:14 mov ax, data15 mov ds, ax16 mov es, ax17 18 ; add your code here 19 BEGIN: 20 MOV AH, 1 ... 阅读全文
posted @ 2014-04-03 14:57 beautifulzzzz 阅读(2290) 评论(0) 推荐(0) 编辑
摘要: 1 ; multi-segment executable file template. 2 3 data segment 4 STRING DB 'SPACE EXPLORERS INC' 5 PRLINE DB 'SPACE EXPLORERS INCE' 6 LAST DB ' ' 7 same DB 'MATCH$' 8 nsame DB 'NO MATCH$' 9 ends10 11 stack segment12 dw 128 dup(0)13 ends14 15 code segment16 start 阅读全文
posted @ 2014-04-03 14:56 beautifulzzzz 阅读(6018) 评论(0) 推荐(1) 编辑
摘要: 1 ; multi-segment executable file template. 2 3 data segment 4 ; add your data here! 5 pkey db "press any key...$" 6 STRING DB 'The date is FEB&03$' 7 ends 8 9 stack segment10 dw 128 dup(0)11 ends12 13 code segment14 start:15 ; set segment registers:16 mov ax, data17 ... 阅读全文
posted @ 2014-04-03 14:54 beautifulzzzz 阅读(1608) 评论(0) 推荐(0) 编辑
摘要: >__<:带进位2位相加; multi-segment executable file template.data segment datax dw 0148H,2316H datay dw 0237H,4052H endsstack segment dw 128 dup(0)endscode segmentstart:; set segment registers: mov ax,data mov ds,ax mov es,ax ; add your code here mov ax, datax ... 阅读全文
posted @ 2014-04-03 14:53 beautifulzzzz 阅读(596) 评论(0) 推荐(0) 编辑
摘要: >___ //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义 8 9 sbit LED=P1^2; //定义LED端口10 11 /*------------------------------------------------12 定时器初始化子程序13 ------------------------------------------------*/14 void TIM2Inital(void)15 {16 RCAP2H = (65536-60000)/256;//晶振12M 60ms 16bit 自动重载17 RCAP2L = (65536-... 阅读全文
posted @ 2014-04-03 00:20 beautifulzzzz 阅读(1790) 评论(0) 推荐(0) 编辑
摘要: >___ //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义 8 9 sbit LED=P1^2; //定义LED端口10 11 /*------------------------------------------------12 定时器初始化子程序13 ------------------------------------------------*/14 void Init_Timer0(void)15 {16 TMOD |= 0x01; //使用模式1,16位定时器,使用"|"符号可以在使用多个定时器时不受影响 17 ... 阅读全文
posted @ 2014-04-03 00:05 beautifulzzzz 阅读(1831) 评论(1) 推荐(0) 编辑