OpenCores
Issue List
BNEQ #28
Closed robertjuk opened this issue over 12 years ago
robertjuk commented over 12 years ago

Hi Steve.

In the boot.asm file you have a line:

bnez $3, $BSS_CLEAR

But there is no instruction bnez or am I missing something? Please could you explain?

Many thanks.

Robert.

rhoads commented over 12 years ago

Robert,

You have made a good observation. The assembler will convert "bnez $3, $BSS_CLEAR" to "bne $3, $0, $BSS_CLEAR". Since register zero always contains the value zero the opcodes perform the same function.

If you type "make count" and then look at test.lst it will show "bnez" but if you type "make run" and single step by hitting the space bar a few times it will show "bne".

Steve

rhoads was assigned over 12 years ago
robertjuk commented over 12 years ago

Hi Steve.

Many thanks for such a prompt reply! OK I understand what you are saying although I am surprised that the assembler doesn't complain.

May I trouble you a little more?

  1. Following your suggest I tried running make count and this all works fine. I had issues with the convert_bin.exe because I am running on windows7. I used bcc32 to recompile the convert.c program and that seemed to fix things.

2.When I try make run I get lots of errors:

D:\robertj\test_area\plasma\plasma\trunk\tools>"C:\Program Files (x86)\GnuWin32\bin\make" run process_begin: CreateProcess(D:\robertj\test_area\plasma\plasma\trunk\tools\mlite.exe, mlite.exe test.bin, ...) failed. make (e=216): Error 216 make: *** run Error 216

D:\robertj\test_area\plasma\plasma\trunk\tools>"C:\Program Files (x86)\GnuWin32\bin\make" run cc1: Invalid option -DWIN32' mlite.c:1: parse error before/' mlite.c:8: character constant too long mlite.c:14: undefined or invalid # directive mlite.c:15: undefined or invalid # directive mlite.c:16: undefined or invalid # directive mlite.c:17: undefined or invalid # directive mlite.c:18: undefined or invalid # directive mlite.c:29: undefined or invalid # directive mlite.c:32: undefined or invalid # directive mlite.c:33: undefined or invalid # directive kbhit mlite.c: In function kbhit': mlite.c:42: storage size ofoldt' isn't known mlite.c:42: storage size of `newt' isn't known

and so on.

This seems to be related to cc1 since if I run the line:

cc1 -o mlite.exe mlite.c

I get the same errors.

Do you think that this is because I am running on Windows 7 or is it related to something else?

Can I compile with another compiler and if so what would you recommend?

Sorry just one other quick question. I notice that you use make and then subsequently gmake. Is there any difference?

Many thanks for your help and I hope it's not too much trouble.

Cheers.

Robert.

rhoads commented over 12 years ago

Robert,

Can you compile mlite.c with bcc32? You could also use http://bellard.org/tcc/. You can also download mlite.exe from the overview tab under the Tools section.

You can use either make or gmake.

Steve

robertjuk commented over 12 years ago

Hi Steve.

Again thanks for the quick response.

  1. I obviously need new glasses. I looked for mlite.exe in the tools directory and didn't see it! Anyway that works fine.

  2. I down loaded tcc and I tried compiling mlite.c with it. Everything seemed to go well. I then ran it and it seems to work so things are looking good!

Many thanks for your help. I am off on holiday for a couple of weeks but may have a few more questions if that is OK?

Cheers.

Robert.

rhoads closed this over 12 years ago
rojiar commented almost 12 years ago

Hello Steve,

Im trying to compile anything,first I had problems with Win7, I downloaded MinGW32, yo solve this. I solved almost any problem, but, at the end I realize that the convert_bin.exe was getting troubles, actually, when I ran the convert_bin.exe it stops running and closes fastly. Then, I used the readelf command, and it seems that file test.axf wasn't ELF type, I tried convert it into ELF, but the options were only ELF32-little-big pei-i386 and others, but I think I need the machine to be ELF32 MIPS, right or Im confused??

Then, I downloaded the TurboC to try the solution that Robert did, I compiled and "maked" the convert.c into a new convert.exe, but when I tried running that, a pop up window appeared, and it said that I can't running the program because my pc is 64 bit plataform...

I had try many solutions, but when I solve one problem, appears 3 more, I dont know what do. What is your advice???

I need to do this, with Plasma, because it's a college project, and I can't use any other core.

Thank you very much!!!

rhoads commented almost 12 years ago

Most of Ronny's problems were resolved by downloading the GNU version of make that is now available in the overview->tools section.


Assignee
rhoads
Labels
Request