Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL blank window #40

Open
AnErrupTion opened this issue Jul 3, 2022 · 4 comments
Open

SDL blank window #40

AnErrupTion opened this issue Jul 3, 2022 · 4 comments

Comments

@AnErrupTion
Copy link

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
Copy link

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

@AnErrupTion
Copy link
Author

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
Copy link
Author

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
Copy link

Ipertatos commented Jun 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants