This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ds51 problem

Hi, there,

In the example subdir, there is a Hello.c with bat file as following,

REM TRANSLATE WITH C51
..\bin\C51 HELLO.C  CODE DEBUG OBJECTEXTEND
REM
REM LINK WITH L51
..\bin\L51 HELLO.OBJ IX
..\bin\OHS51 HELLO
..\bin\ds51 init(hello.ini)

I ran this bat file, it works file.

Now, instead of running the bat file in one shot, I executed the commands one by one.

1. C51 instruction works,

2. L51 doesn't work, but not surprising,

*** FATAL ERROR 210: I/O ERROR ON INPUT FILE:
    EXCEPTION 0021H: PATH OR FILE NOT FOUND
    FILE: C51S.LIB

3. OHS51 works fine.

4. ds51 init(hello.ini) doesn't work. Following is the error.

bash: syntax error near unexpected token '(' 

My question is, is it possible to run the simulation directly from the shell, instead of putting the instruction in a bat file? In other words, how can I test run Hello.c to see "Hello World!" as expected, without running a bat file or running under the IDE?

best wishes,
Kan