Com to Rom: is it possible? (Development MSX Forum)MSX Resource Center PassionMSX MSX2 contest              
              
English Nederlands Español Português Russian         
 News
   Frontpage
  News archive
  News topics

 Resources
   MSX Forum
  Articles
  Reviews
  Fair reports
  Photo shoots
  Fairs and meetings
  Polls
  Links
  Search

 Software
   Downloads
  Webshop

 MRC
   Who we are
  Join our team
  Donate
  Policies
  Contact us
  Link to Us
  Statistics

 Search
 
  

  

 Login
 

Username

Password




Don't you have an account yet? Become an MSX-friend and register an account now!.


 Statistics
 

There are 120 guests and 4 MSX friends online

You are an anonymous user.
 

MSX Forum


MSX Forum

Development - Com to Rom: is it possible?

Author

Com to Rom: is it possible?

mau_rizio
msx friend
Posts: 11
Posted: August 06 2008, 11:58   
Hi guys, sorry for the stupid question, but is possible to convert com files to rom?
I'm using msxpad to create an msx1 game, of course without disk access.

Thank you
mau
enribar
msx lover
Posts: 107
Posted: August 06 2008, 17:08   
Hi mau,
try to compile source in bin format, and then bin to rom.
mau_rizio
msx friend
Posts: 11
Posted: August 06 2008, 17:52   
Hi enri
how i do it?
SLotman
msx professional
Posts: 533
Posted: August 06 2008, 20:15   
Of course you can convert .com files to .rom! But you need ASM to do that

.com files are just programs loaded at 0x100h, so you need to include the whole program in your ROM, and write a small program to relocate it to 100 h in RAM at runtime, do a JP 0100h and that's it.

But if you use any kind of disk access, or - for example - something that requires DOS2 (mapper routines) it won't work on all MSXs
enribar
msx lover
Posts: 107
Posted: August 06 2008, 20:28   
Hi mao, let me check better...
Ah, if I remember well, there's an utility to convert dsk to rom, too.
enribar
msx lover
Posts: 107
Posted: August 06 2008, 20:36   
You need to compile all sources directely with TP3 for MSX: as I can see, TP3 crosscompiler running in MSXPad doesn't allow to compile to BIN...
Check also Freesoft MSX Magazine 22 or 23...
Edwin
msx professional
Posts: 598
Posted: August 06 2008, 23:10   
Maybe this is more helpful.
mau_rizio
msx friend
Posts: 11
Posted: August 07 2008, 01:12   
Thanks all for the help, but...

@SLotman: is there an utility or a doc about that? i'm sorry i don't know nothing about asm, but with the right help i can try...
@Edwin: i know that util, but i don't know how to make a dsk of 32k, is there a way?
mau_rizio
msx friend
Posts: 11
Posted: August 07 2008, 17:57   
@Slotman: what is that runtime.com used by msxpad? i see it's merged with the .chn file at every compilation.

bye
mau
cax

msx professional
Posts: 1011
Posted: August 07 2008, 19:16   
Put your com file on formatted MSX DSK image, add MSXDOS files and autoexec.bat that will run your com, and convert this DSK to ROM using DSK2ROM utility.
mau_rizio
msx friend
Posts: 11
Posted: August 08 2008, 00:25   
Hi cax, yes i did it and it works, i get a 46k rom from a 22k com file
But i really like to have a rom, it looks more professional and loads faster
 
 







(c) 1994 - 2008 MSX Resource Center Foundation. MSX is a trademark of MSX Licensing Corporation.