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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [tools/] [zmac/] [make_fpga.bat] - Blame information for rev 3

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

Line No. Rev Author Line
1 3 gdevic
@echo off
2
Rem
3
Rem     Creates an Intel HEX file format from a Z80 source file.
4
Rem     This hex file is loaded into the ROM module for both the ModelSim
5
Rem     and to be included into the target FPGA data file at the "host" level.
6
Rem
7
Rem     Give it an argument of the ASM file you want to use, or you can simply drag
8
Rem     and drop an asm file into it. If you drop an ASM file and there were errors,
9
Rem     this script will keep the DOS window open so you can see the errors.
10
Rem
11
zmac.exe --zmac %1
12
if errorlevel 1 goto error
13
bin2hex.exe zout\%~n1.cim fpga.hex
14
if errorlevel 1 goto error
15
 
16
Rem     Copy hex files to their target Quartus/ModelSim host directories
17
copy /Y fpga.hex ..\..\host\basic
18
copy /Y fpga.hex ..\..\host\basic\simulation\modelsim
19
 
20
goto end
21
 
22
:error
23
@echo ------------------------------------------------------
24
@echo Errors assembling %1
25
@echo ------------------------------------------------------
26
cmd
27
:end

powered by: WebSVN 2.1.0

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