Discussion in "Project Doubts" started by    ahmed    Apr 8, 2007.
Sat Apr 14 2007, 10:48 pm
#11
hi rickey can u tell me what kind of Assembler use it to assembler ur ((asm file))

be coz i add some instructions ..
Sat Apr 14 2007, 11:31 pm
#12
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.
; 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

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am