Digital Clock with Alarm Using DS1307 .. problem
Sat Apr 14 2007, 10:48 pm
hi rickey can u tell me what kind of Assembler use it to assembler ur ((asm file))
be coz i add some instructions ..
be coz i add some instructions ..
Sat Apr 14 2007, 11:31 pm
I used A51 assembler from keil.
you can use normal assemblers too, you can download one from the download section. But for others assembler you need to make some changes,
main change is.. you cannot use macros.. instead you have to write subroutines.. separately like one of the following...
e.g. for disp_str macro.. you must define a subroutine that send the data to LCD.
So this way, the macros can be replaced, same can be done for the other macros. This will also reduce the size of hex file
you can use normal assemblers too, you can download one from the download section. But for others assembler you need to make some changes,
main change is.. you cannot use macros.. instead you have to write subroutines.. separately like one of the following...
e.g. for disp_str macro.. you must define a subroutine that send the data to LCD.
; This subroutine replaces that macro disp_str: clr a movc a,@a+dptr jz exit acall data_in inc dptr sjmp disp_str exit: ret ; Following is the way.. to use this subroutine mov dptr, #mystring ; mystring is the string to be sent ; this string will be defined as.. follows mystring: db "Rickey's World", 0H
So this way, the macros can be replaced, same can be done for the other macros. This will also reduce the size of hex file
Powered by e107 Forum System