- This topic has 2 replies, 2 voices, and was last updated 14 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › assembly language programming for min no.
hello,
find the mistake in the given assembly language program:
org 0000h
mov 30h,#56h
mov 31h,#35h
mov 32h,#11h
mov 33h,#75h
mov 34h,#4h
mov 35h,#96h
mov 36h,#46h
mov 37h,#26h
min:
mov r0,#30h
mov r3,#06
mov a,@r0
mov b,a
inc r0
mov a,@r0
for2:cjne a,b,com1
com1:jc mor
mov a,b
mor:push 0e0h
inc r0
mov a,@r0
pop 0f0h
djnz r3,for2
ret
cont2:lcall min
mov a,b
setb psw.4
push 0f0h
clr psw.4
mov ro,#30h
cont:xrl a,@r0
jz over
inc r0
sjmp cont
over:mov a,#0ffh
xch a,@r0
djnz r7,cont2
setb psw.3
setb psw.4
pop 7
pop 6
pop 5
pop 4
pop 3
pop 2
pop 1
pop 0
here:sjmp here
end
what kind of error is coming in this
is it logical error or program is not able to compile
hello,
thanks for your replay ,the is that the programm is not able to compile and it is showing error that the call instruction is showing invalid label?