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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/22/00 01:49
Read: times


 
#7484 - RE: LCD not initialising with P1 as Data pin

i have changed the line outportb(Data, Ins) to P1 = Ins; in my c file

it is working alright.


my compiler generated the following asm code for C code line

Ins is parameter to Put_Ins function "Put_Ins(unsigned char Ins)"

#define Data 0x90

// outportb(Data,Ins);

push bp
mov bp,sp
mov a,bp
add a,#0fdh
mov r1,a
mov a,@r1
push acc
clr a
push acc
mov a,#090h
push acc
clr a
push acc
lcall _outportb
mov a,sp
clr c
subb a,#4
mov sp,a


Whether this code is correct or compiler has bug ?

i am not good in assembly language


thanks to all


Haribabu.



List of 5 messages in thread
TopicAuthorDate
LCD not initialising with P1 as Data pin            01/01/70 00:00      
RE: LCD not initialising with P1 as Data pin            01/01/70 00:00      
RE: LCD not initialising with P1 as Data pin            01/01/70 00:00      
RE: LCD not initialising with P1 as Data pin            01/01/70 00:00      
RE: LCD not initialising with P1 as Data pin            01/01/70 00:00      

Back to Subject List