Compare commits
5 commits
4153232a85
...
0c43aaf858
Author | SHA1 | Date | |
---|---|---|---|
0c43aaf858 | |||
0f4cd06e20 | |||
a6a5d31e17 | |||
1e4f42b272 | |||
fc5b8ddfd8 |
5 changed files with 50 additions and 3 deletions
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
github: rick-gnous
|
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Set update schedule for GitHub Actions
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
# Check for updates to GitHub Actions every weekday
|
||||
interval: "daily"
|
27
.github/workflows/main.yml
vendored
Normal file
27
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Test-MSX
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'master'
|
||||
- 'dev'
|
||||
paths-ignore:
|
||||
- '**/README.md'
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
image:
|
||||
name: Test-MSX
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: "📥 Checkout Code"
|
||||
uses: actions/checkout@v2.3.4
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 0
|
||||
- name: "🛠️ Build"
|
||||
run: make docker
|
14
Makefile
14
Makefile
|
@ -1,5 +1,15 @@
|
|||
CC=sjasmplus
|
||||
CFLAGS=
|
||||
DOCKER=docker
|
||||
|
||||
%:
|
||||
CFLAGS=
|
||||
SRCS = $(wildcard *.asm)
|
||||
OBJ = $(patsubst %.asm,%,$(SRCS))
|
||||
|
||||
all: $(OBJ)
|
||||
|
||||
$(OBJ):
|
||||
$(CC) $@.asm --raw=$@.rom
|
||||
|
||||
docker:
|
||||
$(DOCKER) pull bensuperpc/sjasmplus:latest
|
||||
$(DOCKER) run --rm -v "$(PWD)":/usr/src/myapp -w /usr/src/myapp bensuperpc/sjasmplus:latest make all
|
|
@ -6,6 +6,6 @@ Le compilateur [SJASMplus](https://github.com/z00m128/sjasmplus) est utilisé af
|
|||
sjasmplus hello.asm --raw=hello.rom
|
||||
```
|
||||
|
||||
Il est aussi possible d’utiliser le Makefile avec la commande `make <nom programme>`; pour le helloworld par exemple : `make hello`.
|
||||
Il est aussi possible d’utiliser le Makefile avec la commande `make <nom programme>`; pour le helloworld par exemple : `make hello`. La commande `make` compilera tous les fichiers .asm.
|
||||
|
||||
Je m'appuie sur [les tutos de Chibiakumas](https://www.chibiakumas.com/z80/msx.php) pour l’écriture des différents programmes.
|
||||
|
|
Loading…
Add table
Reference in a new issue