lgblgblgb / xemu

Emulations (running on Linux/Unix/Windows/macOS, utilizing SDL2) of some - mainly - 8 bit machines, including the Commodore LCD, Commodore 65, and the MEGA65 as well.
https://github.com/lgblgblgb/xemu/wiki
GNU General Public License v2.0
207 stars 32 forks source link

D81ACCESS: virtual D81 from PRG file feature is limited in max PRG file size which does not make sense (38000 bytes) #271

Closed deftmega closed 3 years ago

deftmega commented 3 years ago

Only some .PRG files get detected when using drag'n drop into the XEMU window (C65/MEGA65 mode executables).

Please find attached one working (kalle65.prg) and one not working (megadots.prg).

Desktop.zip

lgblgblgb commented 3 years ago

Drag'n'Drop feature is designed for D81 images. The logic, that if the size is exactly D81 default size, it is mounted as disk image. If not, but "small enough" it's treated as PRG file and "virtually" converted to D81 image and presented that way. However, the size was limited to 38000 bytes for whatever reasons I can't even remember right now ;) Note, that I can raise that limit, however it won't be a true solution still but surely at least kind of cure the typical situation like this.

So the solution is kinda easy, just raise PRG_MAX_SIZE. For better solution maybe a question box would be need to ask what to do, if it's a PRG file, a "memory inject" (what UI context menu does for the similar option name) would be fancy allow both functionality to be selected as the user wishes.

lgblgblgb commented 3 years ago

According to Bit Shifter, $D700 is the max PRG size (about 217 blocks or so) which can be safely LOADed with his closed-rom flavours. So I'm about raising the limit to that size (even that, if loaded in C64 mode, it can be - ? - already a problem, but that's other question).

lgblgblgb commented 3 years ago

Also, about adding a popup window disappear on dropping file. So you can mount the dropped file as D81 (being a real D81, or converted a file to be on a D81 so can be loaded then) or using PRG run, which is a more faster and direct approach but bypasses the normal LOAD mechanism.

lgblgblgb commented 3 years ago

Just to have some love for the C65 emulator, the drag&drop question thingy should be ported there as well ;)