Merge pull request #4 from ivan-tat/build-process

Build process
This commit is contained in:
Ivan Tatarinov 2021-04-08 01:31:38 +03:00 committed by GitHub
commit 6dc6c31f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,6 @@
@call ..\sdk\setvars.bat
sjasmplus firmware.asm
zx7b firmware_strings.rom firmware.rom.zx7b
sjasmplus bootloader.asm
bin2hex bootloader.rom
copy /y bootloader.hex ..\cores\Spectrum\bootloader_hex.txt
copy /y bootloader.hex ..\cores\Spectrum\bootloader_hex.txt

View File

@ -1,3 +1,4 @@
@call ..\sdk\setvars.bat
echo define version 1 > version.asm
sjasmplus firmware.asm
fcut firmware_strings.rom 7e00 -7e00 strings.bin

View File

@ -1,3 +1,4 @@
@call ..\..\sdk\setvars.bat
FuenteABin
Png2Rcs fondo.png fondo.rcs -a fondo.atr
sjasmplus scroll.asm

View File

@ -1,3 +1,4 @@
@call ..\..\..\sdk\setvars.bat
rem 51F0-A4FF ep 6e3f
rem b900-bf7f
fcut Manic.sna 52F0 4a30 Manic.bin

View File

@ -1,3 +1,4 @@
@call ..\..\..\sdk\setvars.bat
genMenu
rcs screen.scr screen.rcs
fcut screen.rcs 0 1800 screen.cut

View File

@ -1,3 +1,4 @@
@call ..\..\..\sdk\setvars.bat
genMenu 1
rcs screen.scr screen.rcs
fcut screen.rcs 0 1000 screen.cut

View File

@ -1,3 +1,4 @@
@call ..\..\..\sdk\setvars.bat
genMenu 0
rcs screen.scr screen.rcs
fcut screen.rcs 0 1000 screen.cut

7
sdk/common.mk Normal file
View File

@ -0,0 +1,7 @@
# Common declarations for Makefiles.
#
# Supported environments:
# * GNU/Linux
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
ZXUNOSDK := $(patsubst %/,%,$(abspath $(dir $(lastword $(MAKEFILE_LIST)))))

5
sdk/setvars.bat Normal file
View File

@ -0,0 +1,5 @@
@echo off
if not x%ZXUNOSDK% == x exit /b
set ZXUNOSDK=%~dp0
set ZXUNOSDK=%ZXUNOSDK:~0,-1%
set PATH=%ZXUNOSDK%\bin;%PATH%