Hier sollen Dokus und Code Beispiele zur Programmierung des GMOD2 Modulformates besprochen und illustriert werden.
Hallo Besucher, der Thread wurde 2,7k mal aufgerufen und enthält 12 Antworten
letzter Beitrag von Diddl am
Code und Doku zur Programmierung des GMOD2 Formats [OT Sams Journey]
- syshack
- Erledigt
-
-
Wenn jemand C64 Software dafür schreibt. Rein technisch sollte es doch machbar sein, den Spielstand ins Modul zu flashen.
Ich habe keine einsteigerfreundliche Doku mit Code Beispielen gefunden, vermutlich sind nur die Code Schnippets im SVN Repositorey als "Doku" vorhanden, die man durchforsten muss. Hatte noch keine Zeit, das im Detail anzuschauen, aber im /Docs/ Folder sind nur PDFs von Chips Datasheets. Scheint mir etwas karg.
Schade, dass heute kaum jemand noch echte Dokus schreibt im Stile von API Dokumentation mit Code Beispielen im Text erklärt.Etwas Text: http://wiki.icomp.de/wiki/GMod2
SVN Repo: https://svn.icomp.de/svn/gmod2/ -
Das ganze wird wohl auf einem seperaten EEPROM Chip gespeichtert. Mehr weiß ich leider auch nicht dazu. Die Knights könnten ja mal einen Ansatz dazu vorschlagen, oder Jens.
-
Schade, dass heute kaum jemand noch echte Dokus schreibt im Stile von API Dokumentation mit Code Beispielen im Text erklärt.
Code-Beispiele sind im Zweifel die besseren Dokus. Siehe gmod2/eeprom-test/test.asm in diesem Fall. -
Code-Beispiele sind im Zweifel die besseren Dokus. Siehe gmod2/eeprom-test/test.asm in diesem Fall.
Ja, eben: Im Zweifelsfalle. Code ist gut als unterstuetzendes Mittel, um Beschriebenes zu veranschaulichen, welches eben in einer Doku beschrieben wird.
Aber nur Code: Das sind typische "Dokus" von Entwicklern. Eine gute, systematisch und didaktisch gut aufgebaute Doku kommt in den seltensten Fällen vom Entwickler (=Programmierer) selbst, da diese interdisziplinäre Begabung oft dort fehlt.Was erschwerend hier noch dazukommt: Die Datenstrukturen, welche von Sam im EEPROM abgelegt werden sind ja auch nicht dokumentiert.
Am einfachsten waere es, wenn der Entwickler ein Migrationstool mitliefern wuerde, da er diese Datenstrukturen ja am besten kennt. -
Das sind typische "Dokus" von Entwicklern.
Ja, von Entwicklern für Entwickler. Deshalb auch goldrichtig für das hier anvisierte Ziel.Eine gute, systematisch und didaktisch gut aufgebaute Doku kommt in den seltensten Fällen vom Entwickler (=Programmierer) selbst, da diese interdisziplinäre Begabung oft dort fehlt.
Diese "didaktischen" Dokus sind aber oft fehlerhaft und/oder veraltet. -
Diese "didaktischen" Dokus sind aber oft fehlerhaft und/oder veraltet.
Das stimmt leider fuer die heutige Mentalitaet, alle paar Monate eine neue Version einer Software und APIs auf den Markt zu werfen und dann die Dokus nicht nachkommen.
Wir reden hier aber von GMOD2, eine der aktuellsten Modulformate der letzten Jahre oder Jahrzehnte, das wird sich nicht so schnell wieder ändern, wozu auch.
Da sollte ja hoffentlich nicht jedes Jahr eine neue Version und Formate erscheinen. -
Schau dir doch einfach mal das Code-Beispiel an. Jede halbwegs begabte 6502-Entwickler sollte damit klarkommen.
-
Hello
does anyone know how to extract a binary from a gmod2 without removing the Rom ?
-
does anyone know how to extract a binary from a gmod2 without removing the Rom ?
the problem is, the cartridge starts immediately after reset.
so you can do
- make a hardware to read (I'm using an Arduino for this)
- make /GAME and /EXROM switchable (so you can start a program to dump it)
Make sure you read both, FLASH and EEPROM content ...
-
Hi
ok thanks for the info..
do you have a program that can be used to dump the flash and eeprom if i force game and exrom inputs ?
-
do you have a program that can be used to dump the flash and eeprom if i force game and exrom inputs ?
Not currently ...
But it would easy to make such a program.
Cause it is well documented and sample code exists also already.
The problem is, GMOD2 has 512 KB Flash and additionally 2K EEPROM, - you need a storage which can hold this.
Maybe a SD2IEC would be possible to hold the GMOD Image File.
For dumping Flash you only need to read it bank by bank:
- switch off /EXROM
- switch on C64
- load dumper program
- switch on /EXROM
- select Bank #0
- write 8KB (from $8000 to $9FFF) to file
- select Bank #1
- write 8KB (from $8000 to $9FFF) to file
- :
- select Bank #63
- write 8KB (from $8000 to $9FFF) to file
For dumping EEPROM you need a more special code to access this serial memory:
- switch off /EXROM
- write $40 in this IO register to set Bit 6
- use IO register Bit 4,5 and 7 to communicate with serial EEPROM
- read EEPROM for example into RAM at $7000
- write it to file
For this communication with the serial EEPROM exists some sample code in the Wiki.
-
I think the best solution would be a Arduino like this: