MMC Replay and the C128

Started by calle1970se, November 07, 2008, 07:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

calle1970se

Hi guys!

I'm pretty new to this forum, but not to the world of C128 programming  :)

I've been searching the internet for info on how to program the MMC Replay, but the documentation is scarce at best. I (finally!) got the programmers manual that Individual computers released, but those 10 pages could easily have been extended to 150!

Does anyone has any knowledge about the MMC Replay in the C-128 mode. The developers gave us the possibility to stay in C-128 mode with the cartridge in the port, but that's about it. :)

I have been hacking the MMC Replay for a while and have discovered how to map any part of the ROM and the RAM of the cartridge into the memorymap of the C-128.

I created a (simple) cartridge file that autostarts in C-128 mode and it worked nicely in VICE. But when I flash it into a ROM bank of the MMC Replay, leaves the cartridges startup menu but hitting F7, maps the ROM into the memorymap of the C-128 and resets the computer with SYS65341, the C-128 starts the cartridge file as it should but then it hangs completely.

Has anyone else tried this?

Does anoyone know of any software for the MMC Replay in C-128 mode?

Thank you all for your time!

RobertB

Quote from: calle1970se on November 07, 2008, 07:47 AMHas anyone else tried this?

Does anoyone know of any software for the MMC Replay in C-128 mode?
I can ask at the SCCAN meeting this Sunday.

           Truly,
           Robert Bernardo
           Fresno Commodore User Group
           http://videocam.net.au/fcug
           The Other Group of Amigoids
           http://www.calweb.com/~rabel1/

RobertB

Quote from: me on November 07, 2008, 07:57 AMI can ask at the SCCAN meeting this Sunday.
I described your problem to the MMC user in the SCCAN group, and he said that he would check out your problem.  However, he was doubtful.

            No word back yet,
            Robert Bernardo
            Fresno Commodore User Group
            CommVEx v5 info - http://www.commodore.ca/forum and click on ComVEX

FMan

Quote from: calle1970se on November 07, 2008, 07:47 AMDoes anoyone know of any software for the MMC Replay in C-128 mode?
What exactly do you mean by that? About the problem, you could email your source to me. Hard to say what the problem is without seeing what you are doing. :)

MMC Replay is operated similarly in 128 mode as it is in 64 mode. The registers appear at the same location and they serve the same meaning, eg. selecting RAM/ROM and banks.

I was excited about this cartridge when Jens told me it would support C128, but I was disappointed to see that only 8 kilobytes of the ROM was visible at a time, so this makes it impossible to run any actual Function ROMs with it.

To make any bigger ones work, they must support MMC Replay-specific FlashROM banking. I was also disappointed that MMC Replay still did not offer a proper API to the file system or an improved plugin interface.

So fact remains that I am still using my computer without any cartridges. I've also got the 1541 Ultimate, but it's annoying for other reasons and I prefer to use real disks anyways. :D

SmallCleverDinosaur

Fman - long time no seen :)

Quote from: FMan on January 08, 2009, 03:02 AM
Quote from: calle1970se on November 07, 2008, 07:47 AMDoes anoyone know of any software for the MMC Replay in C-128 mode?
What exactly do you mean by that?
I guess I meant if anyone has done any programming for the MMC Replay in C128 mode that I could study and learn from. Actually I have studied your "FMMMCRRRM". And it really pointed me in the right direction. Together with the programmer's manual for the MMC Replay I managed to access the cartridge memory from C128 mode which was a big step :)

Quote from: FMan on January 08, 2009, 03:02 AM
About the problem, you could email your source to me. Hard to say what the problem is without seeing what you are doing. :)
It would be greatly appreciated if you took a look at this, you can download the testcartridge I have created here: http://www.commodore128.org.uk/Cart128.bin

I have figured out which registers to set to the proper values in order to map the cartridge file into the C128 memorymap, the problem is that when I have done this and do a reset the cartridgefile is activated and I can see the result of the program itself (it prints "TESTCARTRIDGE" on the screen after reset and then exits to BASIC). It works fine in VICE, but not with a real C128. Maybe I have set some of the registers incorrectly? So the computer hangs after cartridgeinitlization? Before I do the softreset (with SYS65341) I have "POKE'd" the following:

56833,66
56832,0
57105,3
57107,68

I have placed the cartridgefile in ROM-slot number 4 in the MMC-Replay and used the mapper: "RR + MMC64 Mapper".

Quote from: FMan on January 08, 2009, 03:02 AM
MMC Replay is operated similarly in 128 mode as it is in 64 mode. The registers appear at the same location and they serve the same meaning, eg. selecting RAM/ROM and banks.:)

I was excited about this cartridge when Jens told me it would support C128, but I was disappointed to see that only 8 kilobytes of the ROM was visible at a time, so this makes it impossible to run any actual Function ROMs with it.
I figured that out myself and I must admit that it excited me too :) Even though you can only see 8K at a time you can use bankswitching to see all 512K of RAM or ROM. But I see your point, any existing Function ROM can not be used with the MMC Replay.

The user manual of the MMC-Replay says this: "Super Mapper: 16k mapper designed for new freezer ROM designs. It can also be used to start standard 16k ,,CBM 80" images. This mapper is also designed for C128 ROMs." I've tried to use this one too, but the computer always switches to C64-mode. And hangs, of course, since 16K cartridgefiles switches out the BASIC-ROM. Have you ever figured out what Jens meant by this?
Ignorance is a precious thing. Once lost, it can never be regained.