Jump to content

FredTheFred

New Members
  • Content Count

    46
  • Joined

  • Last visited

Everything posted by FredTheFred

  1. Hello all, I continue to learn but i've got, again, some questions about functions If i understand a function can be called in a program by name_of_function(); and used return(); to go where this function had been called, right ? now in my example i wrote a function called randomize, She's just randomize a number between 1 to 4 and calling anothers functions to display something on screen by the result of randomize. in the end a return command must return to randomize function. But it's doesn'nt work. Can you tell me why ? Thanks all. Maybe it's not clear for you, if you want i can post the code...
  2. Yep ! it's work fine. I keep this example. Thanks
  3. Yes i've already try this alternative code but it's dont work too...
  4. I found another way to do it by : const byte us[]={0x5F}; // define underscore _ for example put_at(0,0,us,1); // For display us variable It work fine like this.
  5. It's a generic example taken from documentation. I just get it back in my own program to test the command - In my program, inside include library i put char c; c = 'A'; and in a routine i put put_char(15,11,s); and it doesn't work.
  6. Hello all I've got a problem to display a character by using put_char void. In the documentation i can read this : void put_char (byte x,byte y,char s); Example: char c; c = 'A'; put_char(15,11,c); I understand char c to define c like a character type variable, c='A' c variable equals A character and put_char to display c variable at x/y location. but when i try to complie the void in my program, SDCC return an error : syntax error: token -> '=' ; column 4 ! what's wrong for me ? Thanks you all for help again...
  7. thanks all, in fact my program doesn'y bug, it's a logical state. In the end of program, he starts again and so on...
  8. I world like to stop the program after an event like pressing Fire button. Actually the program is looping with out ending.
  9. Hello, I'v got a question about ending program in CV code. I've made a little simply program. A little text is displayed (Text 1) on screen and another one after pressing fire (Text 2). Very simply and it's working fine on a emulator. but it's an infinite loop after displayed text 2, it's start again on text 1 and waiting to press fire and so on.... How made an ending point ? like exit command or abort ?
  10. 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.
  11. 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....
  12. I 've checked one asm file. No header start by this adress...
  13. Ok take the problem by another way ! WItch SDCC version patched can you use ? Maybe it's just incompatible kit or data ?
  14. No Pixelboy i've got the same problem. How can i check the coleco header ? By the *.asm file ?
  15. 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
  16. Check out on www.colecovision.com --> http://colecovisionzone.com/page/coleco%20industries/internal.html
  17. 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.
  18. 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 ?
×
×
  • Create New...