CSDN论坛 > 其他开发语言 > 汇编语言

SETB C ?? [问题点数:20分,结帖人cqw4101206]

Bbs1
本版专家分:0
结帖率 100%
CSDN今日推荐
Bbs1
本版专家分:12
Bbs7
本版专家分:19105
Blank
红花 2004年2月 其他开发语言大版内专家分月排行榜第一
2003年12月 其他开发语言大版内专家分月排行榜第一
2003年8月 其他开发语言大版内专家分月排行榜第一
2003年7月 其他开发语言大版内专家分月排行榜第一
Blank
黄花 2004年3月 其他开发语言大版内专家分月排行榜第二
2004年1月 其他开发语言大版内专家分月排行榜第二
2003年9月 其他开发语言大版内专家分月排行榜第二
匿名用户不能发表回复!
其他相关推荐
tput 命令行使用说明
什么是 tput? tput 命令将通过 terminfo 数据库对您的终端会话进行初始化和操作。通过使用 tput,您可以更改几项终端功能,如移动或更改光标、更改文本属性,以及清除终端屏幕的特定区域。 什么是 terminfo 数据库? UNIX 系统上的 terminfo 数据库用于定义终端和打印机的属性及功能,包括各设备(例如,终端和打印机)的行数和列数以及要发送至该设备的文本的属
基于89C51-24c系列读写汇编程序
org 0000h clr p2.1 ajmp z0 du: acall q1 mov a,#0a0h add a,r5 acall so80 mov a,r3 acall so80 acall q1 mov a,#0a1h add a,r5 acall so80 acall do80 acall stop1 mov b,a acall yan ret xie: acall q2 mov a,#0a0h add a,r5 acall xe80 mov a,r3 acall xe80 mov a,b acall xe80 acall stop2 acall yan ret so80: mov r4,#08h clr p1.1 loop0:clr p1.1 rlc a mov p1.0,c setb p1.1 djnz r4,loop0 clr p1.1 nop nop setb p1.1 nop nop setb p1.0 clr p1.1 nop nop ret do80: mov r4,#08h loop1:setb p1.1 nop nop mov c,p1.0 rlc a clr p1.1 nop nop djnz r4,loop1 nop ret q1: setb p1.0 setb p1.1 nop nop clr p1.0 nop nop clr p1.1 ret stop1: clr p1.0 nop nop setb p1.1 nop nop setb p1.0 nop nop ret q2: setb p1.2 setb p1.3 nop nop clr p1.2 nop nop clr p1.3 ret stop2: clr p1.2 nop nop setb p1.3 nop nop setb p1.2 nop nop ret xe80: mov r4,#08h clr p1.3 loop3:clr p1.3 rlc a mov p1.2,c setb p1.3 djnz r4,loop3 clr p1.3 nop nop setb p1.3 nop nop setb p1.2 clr p1.3 nop nop ret yan: mov r2,#50h mov r0,#05h l1:mov r1,#05h l2:djnz r1,l2 djnz r2,l1 ret z0: mov r3,#00h mov r5,#00h mov r6,#00h mov r7,#08h zu: acall du acall xie inc r3 cjne r3,#0100h,zu cpl p2.0 inc r6 inc r6 mov a,r6 mov r5,a djnz r7,zu mm: setb p2.1 clr p2.0 ajmp mm end
单片机Proteus实验——串行通信
MOV SCON,#50H MOV TMOD,#20H MOV TL1,#0E6H MOV TH1,#0E6H SETB EA SETB ES SETB TR1 MOV P1,#0FFH CLR TI LJMP LP0 INS:CLR EA JNB TI,LP1
燃气报警器课程设计
燃气报警器课程设计,电路图,汇编程序 ORG 0000HLJMP MAINORG 0003HLJMP INT0 MAIN: MOV SP,#30H ;主程序 SETB IT0 SETB EA ;开总中断 SETB EX0 ;允许INT0中断 MOV P1,#0FFH JB P1.0,LP1 CLR P2.3
单片机跑马灯中断程序
MOV TMOD,#01H ;设置定时中断0的工作方式 MOV TL0,#0EFH ;添加初值 MOV TH0,#0D8H ; SETB EA ;开总中断 SETB ET0 ;开定时中断 SETB TR0 ;开始计时
单片机课程设计,万年历的实现
ORG 0 SJMP STAR ORG 0013H LJMP XW ORG 001BH LJMP TLSTART ORG 30H STAR: CLR RS0 CLR RS1 MOV SP,#30H MOV TMOD,#10H SETB PX1 CLR IT1 MOV IE,#8CH MOV TH1,#3CH MOV TL1,#0B0H MOV 40H,#10 MOV 20H,#80H MOV 72h,#23 MOV 71h,#49 MOV 70h,#51 SETB P3.3 SETB P3.4 SETB TR1 E01: SJMP E01
串口通信的优化
写了个串口发送程序,在STC单片机里运行正确,可把这程序烧到89C2051里面就不好使!使用51单片机,用的是定时器1,晶振是7.3728M。任务是每20ms通过串口发送一次两组80个的数,两组数中间间隔0.5ms。在STC里面是正确的,可用到89C2051里面就有问题了,收到的全是FF。悬赏分:100 | 2011-11-12 19:09  解决时间:2011-11-17 20:40:44下面是
Redis(三)Redis常用命令详解
前言 在前面一篇的文章中,讲解了Redis的数据类型和使用方式。感觉是不是用起来很简单! 当然它还是有很多其他的特性的,接下来我们慢慢了解它! 一、Redis安全设置 编辑Redis的配置文件redis-conf 我的配置文件在:/opt/redis/redis-conf 387 # Warning: since Redis is pretty fastan outside...
单片机电子时钟的程序
CLR IT0 ;外部中断0为低电平触发 SETB EA ;开总中断 SETB EX0 ;开外部中断0 CLR EX1;关外中断1,打开中断由F5按键控制
16032串口测试程序
www.dslcd.com www.dslcd.com COM EQU 20H;ZHI LIN JI CONG QI DAT EQU 21H;SHU JU JI CONG QI CS2 EQU P3.3; CS1 EQU P3.2;www.dslcd.com SID EQU P3.1;SHU JU XIAN SCLK EQU P3.0;SHI ZHONG XIANG ORG 0000H;www.dslcd.com AJMP MAIN; ORG 0013H; AJMP INSER;www.dslcd.com ORG 0030H; MAIN:MOV SP,#60H; CLR IT1; SETB PX1; SETB EX1; SETB EA; LCALL INT; LCALL CG_WRITE1; MOV DPTR,#TABDY3; ACALL YS;www.dslcd.com LCALL DEL; MOV DPTR,#TABDY0;www.dslcd.com ACALL YS; LCALL DEL;www.dslcd.com MOV DPTR,#TABDY1; ACALL YS; LCALL DEL; MOV DPTR,#TABDY2; ACALL YS;www.dslcd.com LCALL DEL; MOV DPTR,#TABDY4; ACALL YS; LCALL DEL; MOV DPTR,#TABDY5; ACALL YS; LCALL DEL; LCALL CG_WRITE; MOV DPTR,#TABDY2; ACALL YS; LCALL DEL; MOV DPTR,#TABDY3; ACALL YS; LCALL DEL; MOV DPTR,#TABDY4; ACALL YS; LCALL DEL; MOV DPTR,#TABDY5; ACALL YS; LCALL DEL;www.dslcd.com AJMP MAIN; PR1:PUSH ACC; MOV A,COM; SETB CS1;xie ru zwww.dslcd.comhi ling SETB CS2; SETB SID; CLR SCLK; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; SETB SCLK;4www.dslcd.com CLR SCLK; SETB SCLK;5 CLR SCLK; CLR SID; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; MOV C,ACC.7; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.6; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.5; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.4; MOV SID,C; SETB SCLK; CLR SCLK; CLR SID; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; SETB SCLK;4 CLR SCLK; MOV C,ACC.3; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.2; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.1; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.0; MOV SID,C;www.dslcd.com SETB SCLK; CLR SCLK; CLR SID; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; SETB SCLK;4 CLR SCLK; CLR CS1; CLR CS2; ACALL DLY8; POP ACC; RET; PR2:PUSH ACC;XIE RU SHU JU MOV A,DAT;www.dslcd.com SETB CS1; SETB CS2; SETB SID; CLR SCLK; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; SETB SCLK;4 CLR SCLK; SETB SCLK;5 CLR SCLK; CLR SID; SETB SCLK;1 CLR SCLK; SETB SID;www.dslcd.comwww.dslcd.com SETB SCLK;2 CLR SCLK; CLR SID; SETB SCLK;3 CLR SCLK; MOV C,ACC.7; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.6;www.dslcd.com MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.5; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.4; MOV SID,C; SETB SCLK; CLR SCLK; CLR SID; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; SETB SCLK;4 CLR SCLK; MOV C,ACC.3; MOV SID,C; SETB SCLK; CLR SCLK;www.dslcd.comwww.dslcd.com MOV C,ACC.2; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.1; MOV SID,C; SETB SCLK; CLR SCLK; MOV C,ACC.0; MOV SID,C;www.dslcd.com SETB SCLK; CLR SCLK; CLR SID; SETB SCLK;1 CLR SCLK; SETB SCLK;2 CLR SCLK; SETB SCLK;3 CLR SCLK; SETB SCLK;4 CLR SCLK; CLR CS1; CLR CS2; ACALL DELAY; POP ACC; RET; INSER:ACALL DELAY;ZHONG DUAN JNB P3.3,$;www.dslcd.com ACALL DELAY; JB P3.3,$; ACALL DELAY; JNB P3.3,$; ACALL DELAY; JNB P3.3,$; RETI; YS:MOV COM,#80H; LCALL PR1; MOV R2,#32; MOV R3,#00H; LOOP1:MOV A,R3; MOVC A,@A+DPTR; MOV DAT,A; LCALL PR2; INC R3; DJNZ R2,LOOP1; MOV COM,#90H; LCALL PR1; MOV R2,#32; LOOP2:MOV A,R3; MOVC A,@A+DPTR; MOV DAT,A; LCALL PR2;www.dslcd.com INC R3; DJNZ R2,LOOP2; RET; INT:MOV COM,#38H; LCALL PR1; MOV COM,#01H; LCALL PR1; MOV COM,#06H; LCALL PR1; MOV COM,#0FH; LCALL PR1; RET; CG_WRITE:MOV COM,#40H; LCALL PR1; MOV R2,#128; MOV R3,#00H; MOV DPTR,#CGTAB1; CG1:MOV A,R3; MOVC A,@A+DPTR; MOV DAT,A; LCALL PR2; INC R3; DJNZ R2,CG1; RET; CG_WRITE1:MOV COM,#40H; LCALL PR1; MOV R2,#128; MOV R3,#00H; MOV DPTR,#CGTAB; CG2:MOV A,R3; MOVC A,@A+DPTR; MOV DAT,A; LCALL PR2; INC R3; DJNZ R2,CG2; RET; CGTAB:DB 00H,00H,00H,00H,00H,00H,00H,00H;0 DB 00H,00H,00H,00H,00H,00H,00H,00H; DB 00H,00H,00H,00H,00H,00H,00H,00H; DB 00H,00H,00H,00H,00H,00H,00H,00H; DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH;1 DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH; DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH; DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH; DB 0AAH,0AAH,055H,055H,0AAH,0AAH,055H,055H;2 DB 0AAH,0AAH,055H,055H,0AAH,0AAH,055H,055H; DB 0AAH,0AAH,055H,055H,0AAH,0AAH,055H,055H; DB 0AAH,0AAH,055H,055H,0AAH,0AAH,055H,055H; DB 055H,055H,0AAH,0AAH,055H,055H,0AAH,0AAH;3 DB 055H,055H,0AAH,0AAH,055H,055H,0AAH,0AAH; DB 055H,055H,0AAH,0AAH,055H,055H,0AAH,0AAH; DB 055H,055H,0AAH,0AAH,055H,055H,0AAH,0AAH; CGTAB1:DB 055H,055H,055H,055H,055H,055H,055H,055H;0 DB 055H,055H,055H,055H,055H,055H,055H,055H; DB 055H,055H,055H,055H,055H,055H,055H,055H; DB 055H,055H,055H,055H,055H,055H,055H,055H; DB 0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH;1 DB 0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH; DB 0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH; DB 0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH,0AAH; DB 0FFH,0FFH,000H,000H,0FFH,0FFH,000H,000H;2 DB 0FFH,0FFH,000H,000H,0FFH,0FFH,000H,000H; DB 0FFH,0FFH,000H,000H,0FFH,0FFH,000H,000H; DB 0FFH,0FFH,000H,000H,0FFH,0FFH,000H,000H; DB 000H,000H,0FFH,0FFH,000H,000H,0FFH,0FFH;3 DB 000H,000H,0FFH,0FFH,000H,000H,0FFH,0FFH; DB 000H,000H,0FFH,0FFH,000H,000H,0FFH,0FFH; DB 000H,000H,0FFH,0FFH,000H,000H,0FFH,0FFH; TABDY0:DB 0BBH,0B6H,0D3H,0ADH,0BBH,0DDH,0B9H,0CBH,0D4H,0A3H,0CCH,0EFH,0B5H,0E7H,0D7H,0D3H,0B9H,0ABH,0CBH,0BEH; DB 0BBH,0B6H,0D3H,0ADH,0BBH,0DDH,0B9H,0CBH,0D4H,0A3H,0CCH,0EFH; DB 0BBH,0B6H,0D3H,0ADH,0BBH,0DDH,0B9H,0CBH,0D4H,0A3H,0CCH,0EFH,0B5H,0E7H,0D7H,0D3H,0B9H,0ABH,0CBH,0BEH; DB 0BBH,0B6H,0D3H,0ADH,0BBH,0DDH,0B9H,0CBH,0D4H,0A3H,0CCH,0EFH; TABDY1:DB 21H,22H,23H,24H,25H,26H,27H,28H,29H,2AH,2BH,2CH,2DH,2EH,2FH,30H,31H,32H,33H,34H; DB 35H,36H,37H,38H,39H,3AH,3BH,3CH,3DH,3EH,3FH,40H,41H,42H,43H,44H,45H,46H,47H,48H; DB 49H,4AH,4BH,4CH,4DH,4EH,4FH,50H,51H,52H,53H,54H,55H,56H,57H,58H,59H,5AH,5BH,5CH,5DH,61H,62H,63H; TABDY3:DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H; DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H; DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H; TABDY2:DB 00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H; DB 00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H; DB 00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H,00H,02H; TABDY4:DB 00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H; DB 00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H; DB 00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H,00H,04H; TABDY5:DB 00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H; DB 00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H; DB 00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H,00H,06H; DEL:MOV R7,#0FFH; DEL1:MOV R6,#0A0H; DEL2:MOV R5,#03H; DEL3:DJNZ R5,DEL3; DJNZ R6,DEL2; DJNZ R7,DEL1; RET; DELAY:MOV R7,#0FFH; MOV R6,#03FH; IN:DJNZ R7,IN; DJNZ R6,IN; RET; DLY8:MOV R7,#0FFH; DL:DJNZ R7,DL; RET; END 
关闭