Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

MultiMCU Program Build and Compilation

Circuit Description - Take a 8051uc. Connect 40th pin with 5v DC and join
it to 20th pin at gnd. Now in the assembly program, copy the following program.
 
   Mov a,#05h
   Mov r0,#0ah
   Mov a,r0
   Mov r0,a
 
Now when I build the program, though there is no error, no warning, an error
message comes like below. Moreover I am not able to find the Accumulator
value in the "memory view" which should show 05h.
 
--------------------------Building: Project:
project1---------------------------
Main.asm
Note: Due to path length limitations in the 8051/8052 Metalink assembler,
the
path C:\Documents and Settings\techlabs2\My Documents\National
Instruments\Circuit Design Suite 10.0\MCU Workspaces\Easy1\project1\ has
been
mapped to the drive Z: temporarily for this operation.
Errors: main.asm
Assembler results:  0 - Errors, 0 - Warnings
 
I would be grateful to get any help...
0 Kudos
Message 1 of 4
(4,280 Views)

Ath the end of the main the accumulator should have #0ah value no ?

0 Kudos
Message 2 of 4
(4,259 Views)
The one thing that stands out is that the metalink compiler is most likely looking for is:

Your MOV functions are not set up right with the immediate commands. It should be #00Ah, your missing the immediate modifier......see this examples below:

MOV P2,#0FFH
MOV TMOD,#20H
MOV TH1,#0FAH
MOV SCON,#50H

Hope this helps.....maybe the argument compile error isn't getting passed back to the compiler properly.


Signature: Looking for a footprint, component, model? Might be here > http://ni.kittmaster.com
0 Kudos
Message 3 of 4
(4,239 Views)

The path for your project is to long.

 

Try  C:\Documents and Settings\National Instruments\Circuit Design Suite 10.0\MCU Workspaces\Easy1\project1\

 

It is the default instalation dir.

 

There is nothing wrong with the code.

 

 

0 Kudos
Message 4 of 4
(3,837 Views)