SDCC & Hex2Bin resulting on invalid binary?

By Paulo Garcia

Rookie (18)

Paulo Garcia's picture

08-11-2015, 15:12

Hi

I am new to MSX development, and I am experimenting SDCC & Hex2Bin to create MSX programs on Mac OSX. I've followed the steps on Avelino's MSX Page to the letter, and although I don't have any errors or warnings my binary gives me the *Direct Statement in File" error, which I believe is caused by the fact, the OS thinks it is a BASIC program.

The program I am trying to run is the simple Hello World on that page...

Did you guys see that before? Any tips that could me help with it?

Thanks

Paulo

Login or register to post comments

By Paulo Garcia

Rookie (18)

Paulo Garcia's picture

08-11-2015, 15:13

Oh, I also forgot to mention that I use the "crt0msx_msxdos.s" startup code.

Paulo

By Manuel

Ascended (18779)

Manuel's picture

08-11-2015, 16:32

What kind of programs are you creating (for MSX-DOS or to run under BASIC) and how are you trying to start them exactly?

From the looks of it, you're creating an MSX-DOS program (a .COM file), so you should start it from MSX-DOS.

By Paulo Garcia

Rookie (18)

Paulo Garcia's picture

08-11-2015, 17:00

Hey Manuel,

thanks! That was a noob mistake! You are right. After booting MSX-DOS the program is working perfectly.

Thanks!

Paulo