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 39 invitados y 2 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 )
Autor

Is there any C cross compiler that generates ROM files?

ARTRAG
msx master
Mensajes: 1747
Publicado: Abril 21 2006, 14:35   
Not if you are doing a ROM!!
They works on CPM as ther based on bdos calls...
IMHO you have at least 4 options:

1) include the data in the rom at link time (best solution, but you need a good reading of the linker section in the manual -pgs.175 and followings)
2) include the data at compining time (try #INCLUDE)
3) include the data at assembly time (try *INCLUDE)
4) develop the game in msxdos mode and then move
the ROM only at the end

If both INCLUDE in 2 and 3 are only for text file, you could develop
a simple filter program for PC
all you need is to do a conversion of a bin file in a text file where byte
are in text (hex is better) and comma separated....







Huey
msx professional
Mensajes: 636
Publicado: Abril 21 2006, 14:43   
Too bad.
Just wanted to use this during development.......
I'm going for BIN -> Text for now.
ARTRAG
msx master
Mensajes: 1747
Publicado: Abril 21 2006, 21:50   
what about your filter?

I was thinking you could create a .bin of 8K and a
level of 8K and then append the two files in a ".rom"

copy hunter.bin + level.stg > hunter.rom

Huey
msx professional
Mensajes: 636
Publicado: Abril 21 2006, 23:06   
Well I converted the bin to txt and included it in the source.

I've send you an e-mail with my progress. I have some troubles with the controls. I hope you want to help me?
ARTRAG
msx master
Mensajes: 1747
Publicado: Abril 21 2006, 23:34   
I'll do what i can, let me see
ARTRAG
msx master
Mensajes: 1747
Publicado: Abril 22 2006, 09:59   
Humm...
Do I have the permission to play havoc with your code?
Huey
msx professional
Mensajes: 636
Publicado: Abril 22 2006, 11:39   
Sure. Maybe i'll learn something of it
ARTRAG
msx master
Mensajes: 1747
Publicado: Abril 26 2006, 10:55   
About padding to have a 16k rom. As you have in the code a new ptsec
...

psect    pad
defb 01
        
#endasm


you have to add to the linker options this parameters

-ppad=0bfffh


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







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