OpenCores
URL https://opencores.org/ocsvn/a-z80/a-z80/trunk

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [tools/] [zmac/] [make_fpga.bat] - Rev 7

Go to most recent revision | Compare with Previous | Blame | View Log

@echo off
Rem
Rem     Creates an Intel HEX file format from a Z80 source file.
Rem     This hex file is loaded into the ROM module for both the ModelSim
Rem     and to be included into the target FPGA data file at the "host" level.
Rem
Rem     Give it an argument of the ASM file you want to use, or you can simply drag
Rem     and drop an asm file into it. If you drop an ASM file and there were errors,
Rem     this script will keep the DOS window open so you can see the errors.
Rem
zmac.exe --zmac %1
if errorlevel 1 goto error
bin2hex.exe zout\%~n1.cim fpga.hex
if errorlevel 1 goto error

Rem     Copy hex files to their target Quartus/ModelSim host directories
copy /Y fpga.hex ..\..\host\basic
copy /Y fpga.hex ..\..\host\basic\simulation\modelsim

goto end

:error
@echo ------------------------------------------------------
@echo Errors assembling %1
@echo ------------------------------------------------------
cmd
:end

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.