Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/01/99 19:06
Read: times


 
#919 - RE: code problem with at89c52
Hi Mark,
 
You assigned the LCD_BUSY to address 0C002H (LCD_BUSY EQU 0C002H),
and then made in program at least 4 mistakes as following: 
 
1) You are assigning again the name of LCD_BUSY to MACRO name LCD_BUSY (LCD_BUSY MACRO) but any name must be the unique name;
 
2) You are calling the LCD_BUSY as the simply subroutine but it is MACRO. The body of the macro LCD_BUSY is replaced by Assembly instead of name macro LCD_BUSY;
 
3) The last instruction in the body of the macro LCD_BUSY is instruction RET so the instructions after the body LCD_BUSY macro will not executed;
 
4) The macro must be ended by ENDM.
 
I hope my notes helps you a little.
 
By now,
 
Igor
 

List of 2 messages in thread
TopicAuthorDate
code problem with at89c52            01/01/70 00:00      
RE: code problem with at89c52            01/01/70 00:00      

Back to Subject List