FredTheFred Posted August 13, 2015 Share Posted August 13, 2015 Hello, I found my old ColecoVision this week and she's working well after more than 30 year old. I'd like to try to code some little thing for the fun. I download SDDC 3.5.0 and Daniel bienvenu's dev kit. I found some example from the web like Mowleco for studying the script and i used the result.rom file (already compiled) in MSX emulator. It's working well ! But when i try CCI3, there's no error after compiling and linking but when i used result.rom file in msx emulator, the emulator seem dont work because it's not a valide rom file for coleco system. I've got the same result with another emulator. What's Wrong ? Quote Link to comment Share on other sites More sharing options...
Pixelboy Posted August 13, 2015 Share Posted August 13, 2015 Okay, first of all, we need to clarify something: MSX is not ColecoVision. In terms of hardware, they are cousins, but software that runs on an MSX computer doesn't run on a ColecoVision, and vice-versa. With this said, what emulator are you using, exactly? Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 13, 2015 Author Share Posted August 13, 2015 I use The Virtual Colecovision 2.11a release and i've got the same result. I made another test. I just download an exemple of program on www. sebastianmihai.com web site. His program is just an simply version of Diamond (Daniel Bienvenu). In the archive file, there is an already compiled file's result.rom and it work fine with The virtual Colecovision emulator and MSX. But when i compile it by my self, virtual Colecovision emulator display an error box message 'This rom is not a valide colecovision rom file". So strange for me. Quote Link to comment Share on other sites More sharing options...
Pixelboy Posted August 13, 2015 Share Posted August 13, 2015 I'm noticing that you're using SDCC 3.5.0, and I'm not sure it works properly with CCI3. Has anyone else here tried CCI3 with SDCC 3.5.0? Quote Link to comment Share on other sites More sharing options...
artrag Posted August 13, 2015 Share Posted August 13, 2015 The emulator that runs msx and coleco software is bluemsx Quote Link to comment Share on other sites More sharing options...
youki Posted August 13, 2015 Share Posted August 13, 2015 When you linked your project did you link also the CV library Files? cvcrt.lib and cvlib.lib Looks like your rom does not have the coleco header. Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 13, 2015 Author Share Posted August 13, 2015 I don't think so Youki. I gonna to try it... Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 13, 2015 Author Share Posted August 13, 2015 OK, i just check it and it's ok. The projecy link also libraries. This is the result : C:\Users\FredTheFred\z80DB\simple_example>sdcc -mz80 --code-loc 0x8024 --data-loc 0x7000 --no-std-crt0 ../crtcv.rel ../cvlib.lib ../getput.lib ../comp.lib simple.rel tiles.rel C:\Users\FredTheFred\z80DB\simple_example>objcopy --input-target=ihex --output-target=binary crtcv.ihx result.rom Quote Link to comment Share on other sites More sharing options...
Pixelboy Posted August 13, 2015 Share Posted August 13, 2015 So the ROM now works under emulation? Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 13, 2015 Author Share Posted August 13, 2015 No Pixelboy i've got the same problem. How can i check the coleco header ? By the *.asm file ? Quote Link to comment Share on other sites More sharing options...
Pixelboy Posted August 13, 2015 Share Posted August 13, 2015 The ROM is supposed to start with the hex values "55AA" or "AA55", for starters... Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 13, 2015 Author Share Posted August 13, 2015 Ok take the problem by another way ! WItch SDCC version patched can you use ? Maybe it's just incompatible kit or data ? Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 13, 2015 Author Share Posted August 13, 2015 I 've checked one asm file. No header start by this adress... Quote Link to comment Share on other sites More sharing options...
Pixelboy Posted August 13, 2015 Share Posted August 13, 2015 I've used SDCC 3.3.0 successfully with CCI3. Quote Link to comment Share on other sites More sharing options...
Pixelboy Posted August 13, 2015 Share Posted August 13, 2015 I 've checked one asm file. No header start by this adress... I was talking about the generated ROM file. Quote Link to comment Share on other sites More sharing options...
youki Posted August 13, 2015 Share Posted August 13, 2015 I 've checked one asm file. No header start by this adress... It is the ROM file itself you should check. With an hexadecimal editor. The 2 first byte must be : 55 AA or AA 55 And i think the -codeloc should be 0x8048 not 0x8024 Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 14, 2015 Author Share Posted August 14, 2015 Oh Sorry ! i gonna to check it. Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 14, 2015 Author Share Posted August 14, 2015 Ok This is the result after opening a rom file with a hexadecimal editor. For a bad rom file Offset 00000000 D5 20 84 18 99 20 81 18 82 ect... For a good rom file Offset 00000000 55 AA 00 ect... Conclusion : When i compile there is something is missing.... Quote Link to comment Share on other sites More sharing options...
Tursi Posted August 14, 2015 Share Posted August 14, 2015 (edited) I don't know what CCI3 is, so I may be off base, but I don't see a crt0 in your link command... don't you need to specify it even with the libraries? The correct code-loc address depends on the crt0.s. (edit: oh, I guess that is crtcv.rel -- are you getting any warnings when you link?) Edited August 14, 2015 by Tursi Quote Link to comment Share on other sites More sharing options...
Kiwi Posted August 14, 2015 Share Posted August 14, 2015 I'm thinking you're missing files that needs to be put into the SDCC folder. This is an old video on how to install SDCC and there are some files that need to be transfer over to the SDCC folders. This is what I referred to when I first started programming for this system.Also in the newer kit, there are batch files, patchsdcc.bat, that will put the files into the SDCC folder for you. Since the SDCC folder is in Program Files, it might not copy files over due to Windows file permission. The readme.txt will have information where to put these files over manually. I use CCI3 to compile Colecovision project. I'm not sure if CCI3 or CCI2 still works with SDCC 3.5.0. I am still on SDCC 3.3.0 Quote Link to comment Share on other sites More sharing options...
FredTheFred Posted August 15, 2015 Author Share Posted August 15, 2015 OK I've reinstall SDCC (the last release 3.5.0) and the last built coleco devkit from daniel bienvenu website. By the way, Windows not allowed to copy in the sdcc folder, i do it manually. After some test it's will work fine. Thanks all for your help. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.