Help! M80 is giving me "Out of memory" (Development MSX Fora)MSX Resource Center PassionMSX MSX2 contest           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 106 gasten en 3 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - Help! M80 is giving me "Out of memory"

Schrijver

Help! M80 is giving me "Out of memory"

sd_snatcher
msx user
Berichten: 49
Geplaatst: 02 December 2007, 20:57   

As many of you know, I'm working on an improved version of the MSX-Audio BIOS.

But today the M80 compiler began giving me "Out of memory" errors...

Is there a good replacement for M80, either cross compiler or native MSX? It must be fully compatible with it, including macros and IFDEFs, as there's a lot of those on the code.

For cross-compilers, I would also like to know options either for windows, linux or mac-os X.

Also, tips to work-around the problem on M80 will be welcome. I don't know if it's possible so split the program in smaller files and have M80/L80 to build it automatically in a single ROM file afterwards.

Best regards,
FRS


sd_snatcher
msx user
Berichten: 49
Geplaatst: 02 December 2007, 21:34   
Correction: It's L80 which is giving me "Out of memory" errors:

MSX.L-80 1.00 01-Apr-85 (c) 1981,1985 Microsoft
?Out of memory

manuel
msx guru
Berichten: 3381
Geplaatst: 02 December 2007, 21:35   
I don't know if they're compatible with M80, but there are quite some cross assemblers available that work on all three platforms (pasmo, sjasm, z80asm, etc.). tniasm only works on Windows AFAIK.
SLotman
msx professional
Berichten: 531
Geplaatst: 02 December 2007, 22:56   
Well if M80 is giving you out of memory errors, it's because you exceeded 48k on code... is that the case? Your "Bios" have more than 48k?!

Also, M80/L80 runs on MS-DOS prompt - Adriano had adapted it with both a .BAT file to compile your programs (CL80.bat) and 22nce.com (a utility to allow CP/M programs to run on MS-DOS) - just noticed there's also on Adriano's page a version that runs on Linux

to split files on M80 just put the routines you want in other files and include them into your main program:

include <file>

you can also include data like this... just convert any file to a bunch of DB (byte) and do something like:

MyRawData: include myrawfile.inc

(the .inc extension is just what I like to use, you can use any filename/extension you want, even other .mac's)
sd_snatcher
msx user
Berichten: 49
Geplaatst: 05 December 2007, 23:34   
I found the problem. There was a DEFS $-addr,0 being crossed. This caused the M80 to generate a huge file of 130KB that L80 could not handle.

Anyway, thanks everyone for the tips.

Regards,
FRS

 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.