ppeccin / WebMSX

WebMSX - Online MSX Emulator
https://webmsx.org
396 stars 70 forks source link

Subslotting Slot 0 #38

Closed techana closed 6 years ago

techana commented 6 years ago

I defined a new machine (MSX2 Middle East PAL) using the following configuration:

_MSX2M: { _INCLUDE: "_MSX2BASE", BIOS_URL: "@ax370bios.rom", BIOSEXT_URL: "@ax370ext.rom | @ax370arab.rom", BOOT_DURATION_AUTO: 400 },

The machine works well, except when loading an Arabic rom in one of the external cartridges! In this case, the emulator does not load the Arabic font (ax370arab.rom) and hence the Arabic rom does not work.

I want to put ax370arab.rom in slot 0 along with the ax370bios.rom, so the Arabic font is always loaded. Any idea how I can do this?

Thank you.

ppeccin commented 6 years ago

Hi!

Well, it depends on any restrictions we have on the Arabic font placement. Can it be on any slot? Or maybe it must be on the same slot as the EXT rom or maybe the main ROM? If you send me the files (and be sure you send all the files needed) I can do some testing for you, and maybe find the correct placement.

The syntax you used with the "|" connector means you are concatenating both roms and placing them on the same slot, so in this case they will not be on the same starting address, you see? Maybe that is the problem.

Can you send me the files?

Thanks

On Mon, Aug 13, 2018 at 8:40 PM techana notifications@github.com wrote:

I defined a new machine (MSX2 Middle East PAL) using the following configuration:

_MSX2M: { _INCLUDE: "_MSX2BASE", BIOS_URL: "@ax370bios.rom", BIOSEXT_URL: "@ax370ext.rom | @ax370arab.rom", BOOT_DURATION_AUTO: 400 },

The machine works well, except when loading an Arabic rom in one of the external cartridges! In this case, the emulator does not load the Arabic font (ax370arab.rom) and hence the Arabic rom does not work.

I want to load ax370arab.rom in slot 0 along with the ax370bios.rom, so the Arabic font is always loaded. Any idea how I can do this?

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ppeccin/WebMSX/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AArloMUv6hM81ABUrYmXj6O5TjBmx315ks5uQg56gaJpZM4V7kfp .

techana commented 6 years ago

Yes, sure. Please see the attachments.

The rom files are the ones used by CocoaMSX emulator, and others. I also included the "wmsx.js" I'm using and one Arabic game for testing.

The Arabic rom works well under MSX2 Europe machine if it is loaded into cartridge 2 and "ax370arab.rom" is loaded into cartridge 1; but it does not work if it is loaded in either cartridge under MSX2 Middle East machine.

Thank you.

arabicMSX2.zip

ppeccin commented 6 years ago

Well, you just have to change the default BIOS EXT + FONT slot placement on your new Machine config, so it looks like this:

_MSX2M: { _INCLUDE: "_MSX2BASE", BIOSEXT_SLOT: [0, 1], BIOS_URL: "ax370bios.rom", BIOSEXT_URL: "ax370ext.rom | ax370arab.rom", BOOT_DURATION_AUTO: 400 },

Although the BIOS and BASIC work fine, it seems that some games just assume a default Font placement on Slot 0-1, so you better force it there. You can also set the additional ROMs for the built-in programs (Word Processor, Paint), for example, adding to your config:

SLOT_0_2_URL: "ax370swp.rom",

And so on.... That's it! This works for me.

Hope that helps, Paulo

On Wed, Aug 15, 2018 at 2:21 AM techana notifications@github.com wrote:

Yes, sure. Please see the attachments.

The rom files are the ones used by CocoaMSX emulator, and others. I also included the "wmsx.js" I'm using and one Arabic game for testing.

The Arabic rom works well under MSX2 Europe machine if it is loaded into cartridge 2 and "ax370arab.rom" is loaded into cartridge 1; but it does not work if it is loaded in either cartridge under MSX2 Middle East machine.

Thank you.

arabicMSX2.zip https://github.com/ppeccin/WebMSX/files/2289263/arabicMSX2.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ppeccin/WebMSX/issues/38#issuecomment-413097035, or mute the thread https://github.com/notifications/unsubscribe-auth/AArloPkdXoGerSL4hMgFX_g44Dy1Cg-5ks5uQ6-8gaJpZM4V7kfp .

techana commented 6 years ago

Thank you so much. It's working now :)

ppeccin commented 6 years ago

Nice to hear that!