assembler
Sun Jan 20 2008, 01:23 pm
hi.I write an assembly program for AT89C51.how should i assemble it?help please
and please say where can i download assembler!!!i download some of them but i can't use it.thanks
and please say where can i download assembler!!!i download some of them but i can't use it.thanks
Sun Jan 20 2008, 01:52 pm
well this is one nice assembler n easy to use...
r u getting n error or do u want directions to use the assembler...
if getting errors=>
plz.. attatch ur code with ur next post if u cud...
r u getting n error or do u want directions to use the assembler...
if getting errors=>
plz.. attatch ur code with ur next post if u cud...
Sun Jan 20 2008, 01:56 pm
i hope you have got the assembler from the website itself.. they are in 8051 software download section.
whatever errors are.. post them here in forum..
whatever errors are.. post them here in forum..
Sun Jan 20 2008, 02:06 pm
ok thanks.but I couldn't assemble it at all!!!explain how to use.thanks
Sun Jan 20 2008, 02:15 pm
its a command line software..
to compile a file.. just type this in command prompt
a51 < name of file >
to compile a file.. just type this in command prompt
a51 < name of file >
Sun Jan 20 2008, 02:35 pm
i use it but i don't know it is true or not.can i say to u? i write it with my friend .star!!!star send it one time but....
Sun Jan 20 2008, 02:35 pm
ORG 00H MOV P2,#00H MOV P3,#00H BEGIN: CALL DELAY MOV P1,#0FFH MOV A,P1 CJNE A,#40,HIGHER SETB P2.1 CALL MAIN_DISPLAY_COOLERON JMP BEGIN HIGHER: JNC HIGH_40 MOV A,P1 CJNE A,#10,LOWER SETB P3.1 CALL MAIN_DISPLAY_HEATHERON CLR P2.1 JMP BEGIN HIGH_40: CALL DELAY SETB P2.1 CALL MAIN_DISPLAY_COOLERON CLR P3.1 JMP BEGIN LOWER: JC LOW_10 MOV P2,#00H MOV P3,#00H JMP BEGIN LOW_10: SETB P3.1 CALL MAIN_DISPLAY_HEATHERON CLR P2.1 JMP BEGIN DELAY: MOV R7,#100D WAIT: MOV R6,#10D AGAIN: DEC R6 CJNE R6,#00,AGAIN DEC R7 CJNE R7,#00,WAIT RET ; SOURCE> DEST CARRY IS 0 ; SOURCE<DEST CARRY IS 1 MAIN_DISPLAY_COOLERON: CALL LCD_START CALL DISPLAY_COOLERON RET MAIN_DISPLAY_HEATHERON: CALL LCD_START CALL DISPLAY_COOLERON RET LCD_START: MOV A,#38H CALL LCD_COMMAND MOV A,#06H CALL LCD_COMMAND MOV A,#0FH CALL LCD_COMMAND RET LCD_COMMAND: CALL LCD_READY MOV P1,A CLR P2.0 CLR P2.1 SETB P2.2 CLR P2.2 RET LCD_READY: CLR P2.0 SETB P2.1 SETB P1.7 BACK: CLR P2.2 SETB P2.2 JB P1.7,BACK RET LCD_DISPLAY: CALL LCD_READY MOV P1,A SETB P2.0 CLR P2.1 SETB P2.2 CLR P2.2 RET DISPLAY_COOLERON: MOV R0,17 ; DISP_MASSAG: MOV A,"C" CALL LCD_DISPLAY MOV A,"O" CALL LCD_DISPLAY MOV A,"O" CALL LCD_DISPLAY MOV A,"L" CALL LCD_DISPLAY MOV A,"E" CALL LCD_DISPLAY MOV A,"R" CALL LCD_DISPLAY MOV A,"O" CALL LCD_DISPLAY MOV A,"N" CALL LCD_DISPLAY CALL LCD_SHIFT RET ;{DISPLAY_COOLERON} DISPLAY_HEATHERON: MOV R0,17 ; DISP_MASSAG: MOV A,"H" CALL LCD_DISPLAY MOV A,"E" CALL LCD_DISPLAY MOV A,"A" CALL LCD_DISPLAY MOV A,"T" CALL LCD_DISPLAY MOV A,"H" CALL LCD_DISPLAY MOV A,"E" CALL LCD_DISPLAY MOV A,"R" CALL LCD_DISPLAY MOV A,"O" CALL LCD_DISPLAY MOV A,"N" CALL LCD_DISPLAY CALL LCD_SHIFT RET ;{DISPLAY_HEATHERON} LCD_SHIFT: NEXT: MOV A,#1CH CALL LCD_COMMAND DJNZ R0,NEXT RET
[ Edited Sun Jan 20 2008, 04:36 pm ]
Powered by e107 Forum System