CPC Rulez
https://cpcrulez.fr/forum/

Sugarbox : Un nouvel emulateur en version beta
https://cpcrulez.fr/forum/viewtopic.php?f=7&t=5179
Page 8 sur 16

Auteur :  TotO [ 29 Juil 2014, 10:10 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

A ma connaissance, les seules changements sont liés à :
- La version "f3" au lieu de "v3"
- La table de caractères
- Le mapping clavier
- Le check-sum

Tu peux essayer de contacter SyX si tu as besoin d'aide à ce sujet.

Auteur :  Lone [ 29 Juil 2014, 15:37 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Excellente idée !

Voici la réponse de SyX (qu'il m'autorise à copier coller ici ).

Citer :
Well, you can use the UK one from Kevin, because there is only 4 differences between french rom and uk (the same ones between uk and the spanish one), those are:
1.- The keyboard table: The chars are associated to the key combinations (without or with SHIFT or CONTROL pressed).

2.- The font: A few chars are changed for having a more french experience :)

3.- In the initialization text appears f3 for french, instead of v3 for uk or s3 for spanish. Some games read from the rom this byte for trying to detect if we are in a spanish, french or uk cpc... thai does not do this :P

4.- There is a place not used in the firmware ROM, that goes from $058A - $0590, that is filled with $C7, except the byte in $058A that is $26 in UK rom, $44 in french rom and $B3 in the spanish rom. As i have based my FW3.1x in the UK rom (and change the keys and fonts when i'm building these roms), here is $26. I imagine it was used as 7 bytes of padding in the routine that finish in $0589, in case they need to change anything in it and use extra bytes, those free places are very rare in the firmware rom and they are used in patched firmware versions for new functions. Why am i wasting time explaining this "random" zone? Well, can you imagine what is doing the shit of Thai Boxing? xDDDD

Yes, exactly, it's using that zone in the rom xDDDD

Put a breakpoint in $8267, then load Thai Boxing and your emulator will stop in:
Code :
LD   A,$44 <-- Suspicious value xDDD
.loop
CP (HL) <--- Ups, Firmware ROM is enabled and HL is pointing to it, this is not going to finish well xDDD
JR Z,.here
INC HL
JR .loop
.here

They are basically increasing HL, to discover where is the first $44 ("D") in the ROM, that is usually in $0653, instead of doing "LD HL,$0653", the "genious" making this code did that and i can promise this trick can not fool any "cracker" xDDD

This game only runs in uk, spanish or fw3.x by luck and doesn't run in french 6128s by bad luck xDDD

Copy the french rom to other file, open in an hex editor, change the $44 byte in $058A to any other value and you will be able to run Thai Shit perfectly with this new french rom :)

Other solution is fixing the game loader, or cracking the game or in the original floppy you will need to understand the encryptation algorithm (another boring R register decryption loop) and replace that loop for the "LD HL,$0653" and that is all.


Pour ceux qui parlent anglais, nul n'est besoin de commentaire.

En gros, il s'agit d'une routine qui va chercher la première occurrence de $44 dans la ROM. Pas de bol, en ROM FR, on n'a pas la meme adresse que dans les ROM SP et UK, et donc, on échoue.
Donc, le comportement est normal. Mieux, le comportement est exactement celui attendu.

Nous avons donc le fin mot de l'histoire (Mercu a SyX pour l'explication, et à TotO pour m'avoir soufflé son nom !)

Auteur :  TotO [ 29 Juil 2014, 15:56 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

C'est une façon originale d'esquiver le support des claviers AZERTY. :D

A noter que la fiche de cpc-rulez indique :
"BUG: RESET AU CHARGEMENT SUR LA VO/DSK DU JEU AVEC LES 6128 (FIRMWARE/BASIC 1.1)"

Il serait donc bien de préciser : CPC AZERTY.

Auteur :  hERMOL [ 29 Juil 2014, 17:02 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

TotO a écrit :
Il serait donc bien de préciser : CPC AZERTY.

C'est fait!

Auteur :  hERMOL [ 01 Août 2014, 13:29 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Lone peu tu rajoutés des raccourcis clavier sur certaine fonctions de ton émulateur ?
ctrl+f9 : pour un reset
ctrl+f1 : insert disk drive A:
ctrl+f2 : insert disk drive B:
thk

Auteur :  Lone [ 01 Août 2014, 14:24 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

C'est dans la todo list !
Dans la prochaine release en principe .

Auteur :  breiztiger [ 01 Août 2014, 14:25 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

en ajoutant

shift-f1 et shift-f2 pour ejecter les lecteurs

au suivant :P

Auteur :  Mechanix [ 27 Août 2014, 01:39 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Bonjour
Pardonnez l'intrusion un peu brutale, mais j'ai tenté de télécharger sugar box 0.22 sur le site officiel et deux ou trois autres endroits. Toujours le même résultat: avast me le reconnaît comme un faux-positif, me dit que l'ordi est infecté et déconnecte...
Suis-je le seul avec qui cela se produit ?

Entre parenthèse, je n'ai eu aucun pb pour downloader la version 21 sur le site officiel.

Auteur :  Lone [ 27 Août 2014, 12:19 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Hello,

Je suis très surpris : Quand je reprends mes logs, je ne vois rien qui puisse justifier une telle détection... D'autant plus que tu es la première personne qui me fait la remarque (note cependant qu'il n'y a pas non plus des milliers d'utilisateurs...).

Je vais tacher d'investiguer (va donc falloir que j'installe avast quelque part :( )

Auteur :  Kris [ 27 Août 2014, 13:48 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

J'ai avast 2015 sur mon PC et je n'ai pas le probleme: aucun soucis pour telecharger la derniere version. Peut etre un pb de config ?

Auteur :  Mechanix [ 27 Août 2014, 22:28 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Bonsoir, je suis bien désolé de vous ennuyer avec ça ; j'ai essayé la version 21 qui marche.
Ci-joint les deux messages que m'envoie avast (version gratuite, par rapport à ce que disait Kris - je n'ai fait aucun réglage sur la sensibilité de l'AV).

En fait j'avais une question complémentaire : quand j'ai découvert sugarbox hier, je me suis jeté dessus car j'espère voir un jour un emu qui sera capable d'extraire la bande son des fichiers dsk au format midi (enfin, je suppose que le son du cpc était une espèce de midi file, mais n'y connaissant rien je ne peux que le suggérer). Etant musicien, certains génériques et même bandes son mériteraient décortiquage. Sugarbox sait-il faire cela ?

Merci bcp !

Auteur :  Lone [ 27 Août 2014, 23:03 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Alors, pour ce qui est d'avast, je suis sec. Il faudra réessayer avec la prochaine version ?

Concernant le midi.... Le son qui sort du cpc n'est pas du midi. Il s'agit juste de signaux carrés.
Du coup, je ne peux pas trop me prononcer sur la faisabilité du truc (ça doit être possible, reste encore à savoir si c'est complexe ou pas !)

Je vais rajouter ça à ma todo list, des fois que j'arrive à m'ennuyer...

Auteur :  Mechanix [ 28 Août 2014, 00:16 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Okay ; merci pour vos efforts et bon courage !

Auteur :  Lone [ 14 Nov 2014, 14:31 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Nouvelle version, 0.23 !

http://sugarbox.free.fr/?p=117

Voici le log :

- [TAPE] : Tape support : CDT/WAV/VOC/CSW(v1.1 & v2.0, with or without Z-RLE encoding) files are supported
- [TAPE] : Possibility to save Tape as WAV, CDT (with only DRB or CSW blocks), CSW (v1.1 or 2.0 compressed). Preliminary, maybe unexpected results can occurs !
- [FDC] : Head is no longer forced to track 0 when a disk is ejcted. This fix a bug in disk swapping for Targhan.
- [FDC] : Track delay time added. This fixed a weird protection scheme on Daley Thompson Olymic Challenge
- [FDC] : The US1 FDC bit is no longer wired. This fixed "Sphaira" original game.
- [FDC] : When "Read id" is performed on a not formatted track, the track was incorrect in the result. This is now fixed, fixing "Return of the jedi".
- [FDC] : Fixed a bug that only load up to 42 tracks per side for a disk. Now, 720k disk (with 82 tracks) can be loaded again correctly
- [FDC] : Fixed a bug that prevent "motor" command to be taken in account
- [FDC] : Fixed a bug related to BC bit in register 2, making "Starfox" game to work.
- [GUI] : Added protection button for the disks
- [FDC-eDSK] : Correctly save tracks that are not formatted
- [FDC-DSK] : Close dsk file correctly.
- [SHORTCUTS] : added ctrl+f9 -> Reset
ctrl+f1 : insert disk drive A:
ctrl+f2 : insert disk drive B:
- [Gate array] : Fixed a bug that was displaying incorrect colors when using the ghost registers
- [General] : On exit, if a disk has been modified without being saved, user is asked about it.
- [General] : Fixed some rare crash that can occurs
- [General] : A click on speed on status bar now toggle the emulation speed between "100%" and "No speed limit"
- [General] : Some architecture and code optimization, increasing overall emulation speed (about +25% speed)


Comme d'habitude, n'hésitez pas à me signaler un bug ou autre dump qui ne fonctionne pas

Auteur :  dlfrsilver [ 15 Fév 2015, 23:42 ]
Sujet du message :  Re: Sugarbox : Un nouvel emulateur en version beta

Salut Thomas, je viens de procéder à un test sous sugarbox, quand je sélectionne CPC 464 + 64k + basic 1.0, et que je lance Dragon Ninja en version compactée de CNGSOFT sous sugarbox, le jeu se charge comme s'il avait 128ko de ram à disposition (avec 128ko, le jeu compacté se charge en 1 fois, en 64ko c'est du multiload).

Sur mon CPC 464/64ko, le multiload se met correctement en place :)

J'en déduis donc que l'option de paramétrage de mémoire bugge, est-ce que tu pourrais regarder ça ?

j'utilise la beta non public (0.24b5).

Page 8 sur 16 Le fuseau horaire est UTC+1 heure
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/