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

PeterGem
Thu May 16 2024, 06:27 am
Timothywalay
Thu May 16 2024, 04:40 am
Timothypet
Wed May 15 2024, 06:14 pm
RandyBence
Wed May 15 2024, 02:00 pm
JordanDic
Wed May 15 2024, 01:55 pm
DavidDeelf
Wed May 15 2024, 11:16 am
ytaletjkca
Wed May 15 2024, 09:45 am
MildredWoumb
Wed May 15 2024, 04:07 am