rem ==================================================================== rem rem do_dougs6809dabble.asm.bat - assembles, relocates and uploads to FPGA rem rem Assemble .asm 6809 code rem relocate .hex code for 6809 rem Upload using JTAG and USB Blaster rem upload .sof file using quartus_pgm rem upload .hex file using quartus_stp rem ==================================================================== rem C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files>C:\altera\13.0sp1web\quartus\bin\quartus_pgm rem Quartus II 32-bit Programmer rem Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition rem Copyright (C) 1991-2013 Altera Corporation rem rem SBC By Grant Searle rem rem load .sof files into Cyclone 11 FPGA using USB-blaster. goto assemble :assemble rem rem do_dougs6809dabble.asm.bat - assembles, relocates and uploads to FPGA rem rem asm6809 --hex -l doug.lst -o doug.hex doug_20200428.asm asm6809 --hex -l doug.lst -o doug.hex dougs6809dabble.asm rem pause REM monitor -hex doug.hex pause rem CPU sees ROM @ $E000-$FFFF, but quartus software can upload to ROM using address $0000 - $1FFF rem three ways to use hexROMadjust.exe type doug.hex | hexROMadjust.exe type doug.hex | hexROMadjust.exe > doug_1f.hex hexROMadjust doug.hex > doug_2f.hex rem for Cyclone IV board copy doug_1f.hex C:\altera\13.0sp1web\M6809_VGA_PS2_UART_IntRAM(16K)\output_files copy doug_2f.hex C:\altera\13.0sp1web\M6809_VGA_PS2_UART_IntRAM(16K)\output_files rem for Cyclone II board copy doug_1f.hex C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files copy doug_2f.hex C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files rem pause rem load .sof files into Cyclone 11 FPGA using USB-blaster. C:\altera\13.0sp1web\quartus\bin\quartus_pgm -c "USB-Blaster [USB-0]" -m jtag -o p;C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files\Microcomputer_6809_MYROM_9600.sof@1 rem pause rem rem cd C:\altera\13.0sp1web\Multicomp\Microcomputer> rem cyclone 11 board C:\altera\13.0sp1web\quartus\bin\quartus_stp -t C:\altera\13.0sp1web\Multicomp\Microcomputer\MicrocomputerCmd.qsf rem pause rem cyclone 1V board rem C:\altera\13.0sp1web\quartus\bin\quartus_stp -t C:\altera\13.0sp1web\M6809_VGA_PS2_UART_IntRAM(16K)\MicrocomputerCmd.qsf rem pause exit rem ===================================================================================================== rem === command line examples of uploading the .sof file using quartus_pgm and JTAG cable. rem load .sof files into Cyclone 11 FPGA using USB-blaster. rem Grants .sof files do not enable the ROM and RAM to be read using the JTAG cable. rem My .sof files allow the ROM to be overwritten using the JTAG cable using quartus_stp rem BAUD rate either 115200 or 9600 rem Microcomputer_6809_MYROM_9600 C:\altera\13.0sp1web\quartus\bin\quartus_pgm -c "USB-Blaster [USB-0]" -m jtag -o p;C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files\Microcomputer_6809_MYROM_9600.sof@1 REM OSI 6502 BASIC VERSION 1.0 REV 3.2 rem C:\altera\13.0sp1web\quartus\bin\quartus_pgm -c "USB-Blaster [USB-0]" -m jtag -o p;C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files\Microcomputer_6502_115200.sof REM Microcomputer_z80_ROM_115200.sof x80 test.hex built using SDCC, BAUD 115200 rem C:\altera\13.0sp1web\quartus\bin\quartus_pgm -c "USB-Blaster [USB-0]" -m jtag -o p;C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files\Microcomputer_z80_ROM_115200.sof rem Z80 BASIC Ver 4.7b rem C:\altera\13.0sp1web\quartus\bin\quartus_pgm -c "USB-Blaster [USB-0]" -m jtag -o p;C:\altera\13.0sp1web\Multicomp\Microcomputer\output_files\Microcomputer_z80_115200.sof pause