Is there any C cross compiler that generates ROM files? (Development Foros MSX)MSX Resource Center            
                       
English Nederlands Espa�ol Portugu�s Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 58 invitados y 5 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - Is there any C cross compiler that generates ROM files?

Ir a la página ( Página anterior 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 Siguiente página )
Autor

Is there any C cross compiler that generates ROM files?

pitpan
msx master
Mensajes: 1390
Publicado: Marzo 23 2006, 12:06   
And please note that there is both a Hitech C compiler and a Hisoft C compiler too. Has anyone used the included Z80 assembler from Hitech? It is called ZAS and it seems to be a powerful tool.
AuroraMSX

msx master
Mensajes: 1262
Publicado: Marzo 23 2006, 19:30   
Quote:

Has anyone used the included Z80 assembler from Hitech? It is called ZAS and it seems to be a powerful tool.



I did. It's a rather nice assembler indeed, but I haven't quite figured out some of th emore advanced stuff, like defining macro's
Huey
msx professional
Mensajes: 633
Publicado: Abril 04 2006, 11:28   
Ok, i've got an evaluation version of the Hi-tech crosscompiler. I always wanted to make a game but never got to it. Mostly the lack of Asm knowledge and unreasonable demands back in the glory days.;P
Triggered by the Robsy dev contest, this topic and the topic of Cas (parallax) i decided to try it for the last time. I got some C experience and a reasonable insight on computer achitecture which hopefully gets me started in a reasonable time.

My aim wil be a simple non-scrolling platformish MSX1 screen2 game. I believe that a fancy scrolling high-action MSX2 screen5 game is way out of my leage now (coding and graphic skill-wise).


snout

msx legend
Mensajes: 4992
Publicado: Abril 04 2006, 11:43   
Way to go, Huey! If you get stuck somewhere in the process, don't hesitate to ask around on (e.g.) this forum! Keep us posted on your progress
Huey
msx professional
Mensajes: 633
Publicado: Abril 04 2006, 11:56   
Thanks. I will. Bifi already helped/triggered me in this.

B.t.w. will there be another Robsy dev contest?
pitpan
msx master
Mensajes: 1390
Publicado: Abril 04 2006, 12:32   
Welcome onboard, Huey.

About MSXdev, all you have to do is just wait a bit more. There will be some surprises for sure!
Huey
msx professional
Mensajes: 633
Publicado: Abril 04 2006, 16:49   
Oh man! I feel so stupid. X(

Can anybody help me? How do I get my compiled program to run on my MSX-Emulator? Anybody knows what output format to use use?

I have the following config:
ROM 0000h
RAM 8000h
Size 4000h
Compiler output is a .BIN file.

Any idea what to do next. Obviously i cant just bload them of rename it ro a rom.......

boblet
msx user
Mensajes: 47
Publicado: Abril 04 2006, 17:33   
I see no mention of sdcc, is it universally hated?
pitpan
msx master
Mensajes: 1390
Publicado: Abril 04 2006, 17:54   
Weird configuration: your own ROM game should start in 4000h if you want to access easily the system BIOS (without interslot calls). And it is better to put the RAM in C000h to make it more compatible.

Just to make it sure: what's the size of the output? Is it 4000h or 4007h bytes? (this is it 32768 or 32775 bytes?)

pitpan
msx master
Mensajes: 1390
Publicado: Abril 04 2006, 17:58   
Again: I have no experience with Hi-tech cross-compiler, therefore I'm just guessing, but in an ideal world, a non-mapped MSX standard binary ROM should follow these guidelines:

- Start on page 1 or 2 (4000h or 8000h)
- Be 8, 16 or 32 KB long - for a 32 KB ROM is compulsory to make it start at 4000h
- Use page 3 for RAM (C000h)
- The first 16 bytes of the file should have the following structure:

Offset Length Contents
---------------------------------
0 2 "AB"
2 2 Start_address
4 12 ZEROs

Hope that this helps!
Huey
msx professional
Mensajes: 633
Publicado: Abril 04 2006, 18:41   
The strangest is that the outpufile is 9KB....
pitpan
msx master
Mensajes: 1390
Publicado: Abril 04 2006, 19:12   
Weird!
Huey
msx professional
Mensajes: 633
Publicado: Abril 04 2006, 23:11   
Did someone ever use the HI-TECH C crosscompiler? It's getting frustrating.......I didn't expect it would be this difficult. I even can't compile any examples.
ARTRAG
msx master
Mensajes: 1747
Publicado: Abril 04 2006, 23:13   
do you have tried the cpm mode?
It works fine
Huey
msx professional
Mensajes: 633
Publicado: Abril 04 2006, 23:30   
That gives a 5 KB .com file. The example .com is 32kb. What am I doing wrong?
 
Ir a la página ( Página anterior 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 Siguiente página )
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation