jdah / jdh-8

An 8-bit minicomputer with a fully custom architecture
MIT License
1.29k stars 89 forks source link

SDL blank window #40

Open AnErrupTion opened 2 years ago

AnErrupTion commented 2 years ago

I compiled both demo.asm and ostext.asm, and I used this command to load them into the emulator: ./bin/emu -l demo 0xC000 -l ostext 0 -m kb -m screen -r realtime

However, the SDL window is blank: image

You can see the output of the terminal, the files are being correctly loaded and there are no errors. I'm not sure what's causing this, I just built with make, and I had all dependencies installed (at least make did not throw any error).

Ipertatos commented 1 year ago

Hi sorry to revive such an old post but did you manage to find a solution to this?

AnErrupTion commented 1 year ago

Hi sorry to revive such an old post but did you manage to find a solution to this?

I haven't tried since, I could try fairly soon (I'm using a completely different distribution + WM) so maybe it'd work, but I have no idea...

AnErrupTion commented 1 year ago

Well, now it doesn't even compile anymore:

emu/emu.c:174:15: error: incompatible integer to pointer conversion initializing 'FILE *' (aka 'struct _IO_FILE *') with an expression of type 'int' [-Wint-conversion]
        FILE *f = fmemopen((void *) out, n, "wb");

And I'm too lazy to fix it xD Besides, it probably still doesn't work...

Ipertatos commented 1 year ago

ok so aparently i was loading the rooms wrong.... i loaded the os just fine but I loaded the program on 0xC0000 instead of 0xC000 sooo yea that was it. ./bin/emu -l os.bin 0x0000 -l demo.bin 0xc000 -m screen -m kb -r normal