Thanks a lot for the links!
I don't like inline assembly too much. I rather prefer having a separate assembly file with C callable routines. I usually only use inline assembly for extremely simple routines that fit inside a C macro, and doesn't make sense wasting time calling them/returning.
Search found 125 matches
- Wed Aug 07, 2013 10:36 am
- Forum: Tools
- Topic: Can't find some info about Assembler tools
- Replies: 14
- Views: 10069
- Tue Aug 06, 2013 7:17 pm
- Forum: Tools
- Topic: Can't find some info about Assembler tools
- Replies: 14
- Views: 10069
Can't find some info about Assembler tools
I want to code some routines in 68k ASM using the GNU toolchain. I'm interested both in inline assembly and also in making "C" callable ASM routines. This is not the first time I do this, but this is the first time I do it with GCC and a 68000 CPU (previously I coded some "C" callable ASM routines f...
- Sat Aug 03, 2013 9:51 am
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
I got some more time to play with this and finally got it to work! Grabbed SGDK "windows only" makefile and started modifying it to work with GNU/Linux. At first, object files were built, but failed when linking: m68k-elf-gcc -n -T /opt/toolchains/gen/ldscripts/md.ld -nostdlib out/sega.o @out/cmd_ /...
- Mon Jul 29, 2013 4:51 pm
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
The included Makefile is driving me nuts :? I'm trying to modify it. First I commented out the ARCHIVES variable. Now I want to know why each time I make the project, all the .o and .elf files are deleted just after the final dd that copies and pads the ROM. It's a complete mistery. The only rm in t...
- Fri Jul 26, 2013 6:55 am
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
I just copied the Makefile inside /opt/toolchains/gen/skeleton, and didn't modify a single line. Isn't this supposed to be the SGDK Makefile? I'm a bit confused. The linker step in the Makefile is exactly this one: %.elf: $(OBJS) $(BOOT_RESOURCES) $(CC) -o $@ $(LINKFLAGS) $(BOOT_RESOURCES) $(ARCHIVE...
- Thu Jul 25, 2013 7:24 am
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
I have just tried building the rotating cube sample, without success. It looks like the toolchain doesn't generate correct roms, dgen complains about "no valid ROM found", and it looks like the ROM header is not OK: $ cp -r /opt/toolchains/gen/skeleton/* ./ $ make m68k-elf-gcc -m68000 -Wall -O2 -c -...
- Thu Jul 25, 2013 6:43 am
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
- Wed Jul 24, 2013 4:10 pm
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
I have just successfully built the toolchain on a 64 bit Arch distro using this script. Thanks @kubilus1 and @Chilly Willy. I had some problems because Arch uses texinfo version 5.1, and this version fails while building documentation from .texi files (I have suffered this problem also building e.g....
- Wed Dec 26, 2012 9:45 pm
- Forum: Hardware
- Topic: EXP port as UART? For MD/GENNY soundcard project...
- Replies: 13
- Views: 10801
- Mon Dec 24, 2012 12:44 pm
- Forum: Hardware
- Topic: EXP port as UART? For MD/GENNY soundcard project...
- Replies: 13
- Views: 10801
Thanks a lot for the info. It's a pity the port isn't full duplex and has no Tx interrupt :( If I want to use controller port 1, then registers are 0xA1000F (TxData), 0xA10011 (RxData) and 0xA10013 (S-Ctrl), right? What's the pinout for TX and RX pins? Does it use standard DB-9 pinout (e.g. pins 2 a...
- Sat Dec 08, 2012 4:01 pm
- Forum: Hardware
- Topic: OutRun Toolchain & Bootloader
- Replies: 2
- Views: 3967
- Sat Dec 08, 2012 3:55 pm
- Forum: Hardware
- Topic: EXP port as UART? For MD/GENNY soundcard project...
- Replies: 13
- Views: 10801
- Fri Nov 02, 2012 6:05 pm
- Forum: Tools
- Topic: Linux Genesis Dev Setup
- Replies: 125
- Views: 124741
- Sun Oct 21, 2012 11:28 am
- Forum: Cartridge
- Topic: custom co-processor chips like the SVP?
- Replies: 94
- Views: 111506
I was talking about this or this . They are 600 MIPS (really 600 MMACs) devices, with 32/64 kiB internal dual port RAM. The internal ROM is read only. It has the bootloader and some utilities (like a sine LUT). The bootloader is pretty flexible. It can boot from external memory (via parallel or SPI ...
- Sat Oct 20, 2012 7:33 pm
- Forum: Cartridge
- Topic: custom co-processor chips like the SVP?
- Replies: 94
- Views: 111506
TI DSPs are really easy to use. They can be coded using C/C++ and there are free libraries available to use their peripherals. You'll need to learn assembly language if you want to extract all the juice of the DSPs, but I suppose C is enough for most tasks. It would be useful to know an estimation a...