dmsc / emu2

Simple x86 and DOS emulator for the Linux terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video output corrupted on big-endian platforms

johnsonjh opened this issue · comments

Example of expected output:

image

Actual output:

image

A fix is likely trivial but I've not yet had a moment to look myself.

I should add that the simulation works fine other than the inability to see the output...

image

I "fixed" it — at least partially ... there are likely more places swapping would be needed - I am not at all familiar with the code yet.

image

I think runtime endian detection would be the best option here - tell me what you think.

Well, not complete but but close ...

commented

Hi!

Thanks for your report.

Can you test this branch, it has a fix for this issue: https://github.com/dmsc/emu2/tree/fix-issue-32

Have Fun!

@dmsc

Sorry for the delay - yes, I can confirm that this works great.

Thanks for the quick proper solution.

commented

Thanks, merged in 40101bd