jamesbowman / 8051forth

Forth for the 8051
GNU General Public License v3.0
29 stars 5 forks source link

how to run on simulator? #5

Closed kenyapcomau closed 1 year ago

kenyapcomau commented 1 year ago

I know this project is no longer maintained but perhaps a hint or two would help.

I don't see how the resulting hex file is run to validate the build.

  1. The instructions are to run the command: 8051emu/emu generic camel51.hex But the simulator doesn't accept an argument called generic.
  2. The emulator is supposed to produce output which is captured in the file actual and compared with the file golden. But the emulator uses ncurses and generates screen output which looks nothing like the console output in golden.

I tried using an updated version of 8051emu from Github but the updates are minor and again there is no sign of console output, only ncurses output.

Wait, I think I get it. You defined aother main program called mymain.c which is a wrapper for the core simulator and this is the one that should be used.

Like in another issue reporter, I was wondering if this forth could be put inside a CH552.