Virtualc64: Window Roms Dialog button

Created on 13 Nov 2018  路  9Comments  路  Source: dirkwhoffmann/virtualc64

Hi,

is it possible to add a button in the Hardware Config Window to display the Roms Dialog Window ?

Note: to change the roms to try JaffyDos I had to rename the roms folder (so the VirtualC64 was going to ask for new Roms), but a button in the hardware config (to display the Roms in use) will be faster and more simple.

enhancement

Most helpful comment

It works fine for me too

All 9 comments

In V3.2, it'll be easier to replace a ROM, e.g., to install JiffyDOS.

Open menu item "VirtualC64->Preferences->ROM images" which displays a redesigned ROM dialog:

bildschirmfoto 2018-11-19 um 13 00 15

Click the trash icon for the Kernal Rom:

bildschirmfoto 2018-11-19 um 13 00 33

Drag in JiffyDOS, click OK, and perform a reset.
bildschirmfoto 2018-11-19 um 13 04 14

Great and very easy !

Support is available in 3.2 alpha 4:

http://www.dirkwhoffmann.de/virtualc64/VirtualC64_3.2alpha4.zip

Any feedback is welcome.

It works fine, thanks !

Ok, it works but why not a button here:
schermata 2018-11-19 alle 23 35 40

Good idea, Mortinus! I'll a button in the hardware preferences.

Button is available in

http://www.dirkwhoffmann.de/virtualc64/VirtualC64_3.2alpha6.zip

The new implementation computes fingerprints for all ROMs (simple FNV-1a hash values) and can therefore recognize different ROM revision. This might be useful especially for the Kernal Rom, because there are three different revisions (the third being the most common one):

bildschirmfoto 2018-11-22 um 10 53 58

If you replace the Kernal by, e.g, JiffyDOS, it looks as follows:

bildschirmfoto 2018-11-22 um 10 54 17

If we want to, we can add JiffyDOS to the known ROMs. There is a simple array map in file RomPrefsController.swift:

let knownKernalRoms : [UInt64 : String] = [
    0x0000000000000000:
    "This 8 KB Rom contains the low-level operating system. There are three major revisions of this chip, the third being the most common.",
    0xFB166E49AF709AB8:
    "Commodore 64 Kernal (1st revision)",
    0x4232D81CCD24FAAE:
    "Commodore 64 Kernal (2nd revision)",
    0x4AF60EE54BEC9701:
   "Commodore 64 Kernal (3rd revision)",
    0x429EA22675CAB478:
    "Commodore 64 Kernal (3rd revision, Danish)",
    0x8C4548E2202CB366:
    "Commodore SX-64 Kernal",
    0x746EB1BC008B07E1:
    "Commodore SX-64 Kernal (Scandinavian)",
]

BTW, is it "ROM" or "Rom"? 馃 I'm somewhat inconsistent on this.

...I prefer "ROM", by the way it works well we can close...

It works fine for me too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alessandro1970 picture Alessandro1970  路  3Comments

cfwdman picture cfwdman  路  6Comments

dirkwhoffmann picture dirkwhoffmann  路  5Comments

PakkunKinoppi picture PakkunKinoppi  路  4Comments

Alessandro1970 picture Alessandro1970  路  3Comments