Thank you so much for this, I was worried I would either have to either do all my development in a Windows 98 virtual machine or pay Toshiba $600 for a new version of their compiler. Out of curiousty, what did you have to modify to get it working?
edit: nvm, looks like you just run thc1 and thc2 manually instead of dealing with cc900 (I might write a wrapper program that does it a bit more "user friendly" than that at some point). Anyway, the default makefile also doesn't work properly with anything using that NGPC framework that everyone uses, so here's one that does:
note that by "works" I mean "spits out a bazillion warnings because it's compiling shit out of order or something" but it does generate a functional binary
edit: nvm, looks like you just run thc1 and thc2 manually instead of dealing with cc900 (I might write a wrapper program that does it a bit more "user friendly" than that at some point). Anyway, the default makefile also doesn't work properly with anything using that NGPC framework that everyone uses, so here's one that does:
Code:
.SUFFIXES: .c .asm .rel .abs
NAME = MAXIDEMO
OBJS = \
maxidemo.rel \
library.rel \
$(NAME).ngp: makefile ngpc.lcf $(OBJS)
tulink -la -o $(NAME).abs ngpc.lcf system.lib $(OBJS)
tuconv -Fs24 $(NAME).abs
s242ngp $(NAME).s24
.c.rel:
thc1 $< $<.thc
thc2 -O3 $<.thc $<.asm
asm900 -w $<.asm -o $@
rm $<.thc $<.asm
clean:
del *.rel
del *.abs
del *.map
del *.s24
note that by "works" I mean "spits out a bazillion warnings because it's compiling shit out of order or something" but it does generate a functional binary