jdah / jdh-8

An 8-bit minicomputer with a fully custom architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDL blank window

AnErrupTion opened this issue · comments

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).

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

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...

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...

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