Posted: Fri May 02, 2014 9:40 am
I was talking about asm68k. And I always use space instead of tab for indent.MintyTheCat wrote:Yes, but that's for asm68k and he wants GAS' Org. Also, you had better tab that Org directive
Sega Megadrive/Genesis development
https://gendev.spritesmind.net/forum/
I was talking about asm68k. And I always use space instead of tab for indent.MintyTheCat wrote:Yes, but that's for asm68k and he wants GAS' Org. Also, you had better tab that Org directive
Yeah that works, the incbin and include commands don't have issues, but try putting a space in the main source filename itself and you'll have a problem. Putting quotes around the filename on the command line won't work either. This is more of a problem when you have the compiler at a central location and pass a full path to your source files on the command line because that path now can't contain spaces either. Even if you don't do that though, and you just have the assembler in the same folder as the main source file, try placing the source and assembler in a subdirectory where the total parent directory path length is over 90 characters. You'll find it'll mess up the path handling and won't find the source file. 90 characters isn't very long by today's standards. Just something like "D:\Emulation\Source\Mega Drive" is already over 30.r57shell wrote:Nemesis wrote:If you just run it without parameters and check the usage instructions, you'll probably see a few lines I inserted at the top there explaining the edit.This is working:Code: Select all
SN 68k version 2.53 Copyright (c) 1988-1997 S.N. Systems Software Limited, all rights reserved USAGE : asm68k /options source,object,symbol,listing,temporary file .....................
Code: Select all
org $0 incbin 'qwe asd zxc' include 'qwe asd zxc' dc.l filesize('qwe asd zxc')