# build script/batch-file via gcc cross-compiler and cross-binutils # /opt/mips/bin/mips-idt-elf-as -o initcodeelf.o initcodeelf.s # # we need -g instead of -O here, because we don't want the compiler to # optimize the I/O store operations away... # /opt/mips/bin/mips-idt-elf-gcc -g -O0 -c ks0108.c # # we could request -O3 here, but it doesn't seem worthwile. # /opt/mips/bin/mips-idt-elf-gcc -g -O2 -c lcd.c /opt/mips/bin/mips-idt-elf-ld initcodeelf.o lcd.o ks0108.o -Ttext 00000010 -Tdata 00002000 mv a.out lcd.elf java hades.models.mips.tools.Elf2Rom lcd.elf lcd.rom # cp lcd.c lcd.c.txt cp ks0108.c ks0108.c.txt cp lcd.rom lcd.rom.txt /opt/mips/bin/mips-idt-elf-objdump -d lcd.elf > lcd.elf.txt echo "ok."