asm code

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
Rein
Posts: 1
Joined: 25 Sep 2013 09:35

asm code

#1 Post by Rein » 25 Sep 2013 09:54

Hello,

I'm working with a big8051 board.

When I compile asm routines , I have error messages asm instruction not found.
Example:

MOV P1MDOUT,#0FF

returns asm instruction not found while

MOV XBR2,#040

is recognized.

Where's the problem?

Thank you for helping me.

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: asm code

#2 Post by marina.petrovic » 26 Sep 2013 12:40

Hi,

In our compiler "#0FF" is invalid asm syntax, on the other hand, "#040" is valid asm syntax.

If you want to know details about asm syntax supported by mikroC PRO for 8051
it is recommended to study asm and lst files generated by compiler.

Best regards,
Marina

mbrearley
Posts: 5
Joined: 24 Sep 2013 09:58

Re: asm code

#3 Post by mbrearley » 26 Sep 2013 14:45

Try using MOV P1MDOUT,#0xFF
and MOV XBR2,#0x40
Mike

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: asm code

#4 Post by marina.petrovic » 27 Sep 2013 12:16

Hi,

Hexadecimal values needs to be in format "#0xFF", like mbrearley already said,
so please try to use:

Code: Select all

MOV P1MDOUT,#0xFF
instead of:

Code: Select all

MOV P1MDOUT,#0FF
Best regards,
Marina

Post Reply

Return to “mikroC PRO for 8051 General”