From 1836649e690046af9941e5d13f89ad653a3694c0 Mon Sep 17 00:00:00 2001
From: Jikhai <reldin.d@gmail.com>
Date: Mon, 10 May 2021 22:54:41 +0200
Subject: [PATCH 1/4] =?UTF-8?q?Pr=C3=AAt=20pour=20compilation=20avec=20SJA?=
 =?UTF-8?q?SM?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md |  4 ++--
 hello.asm | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 914fd97..1046388 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
 Dépôt contenant des fichiers pour tester le développement sur MSX.
 
-Le compilateur [VASM](http://sun.hasenbraten.de/vasm/) est utilisé pour l'instant afin de compiler les fichiers et [OpenMSX](https://github.com/openMSX/openMSX) pour l'émulateur. La commande pour compiler les sources :
+Le compilateur SJASMplus est utilisé afin de compiler les fichiers et [OpenMSX](https://github.com/openMSX/openMSX) pour l'émulateur. La commande pour compiler les sources :
 
 ```
-vasmz80_oldstyle hello.asm -chklabels -nocase -DBuildMSX=1 -DBuildMSX_MSX1=1 -Fbin -o hello.rom
+sjasmplus hello.asm --raw=hello.rom
 ```
 
 Je m'appuie sur [le tuto de Chibiakumas](https://www.chibiakumas.com/z80/helloworld.php#LessonH3) pour le Hello worl.
diff --git a/hello.asm b/hello.asm
index 3f7ca56..8f27255 100644
--- a/hello.asm
+++ b/hello.asm
@@ -1,14 +1,14 @@
 ; Entête pour cartouche (10bits)
-    org     &4000               ; adresse de la cartouche org permet de 
+    org     0x4000               ; adresse de la cartouche org permet de 
                                 ; se positionner à une adresse dans la mémoire
     db      "AB"                ; premiers bits du header
     dw      Start               ; adresse de la fonction de départ
     db      00,00,00,00,00,00   ; bits inutilisés dans notre cas
 
 Start:
-    call    &006F               ; permet de sélectionner le mode de l'écran
+    call    0x006F               ; permet de sélectionner le mode de l'écran
     ld      a, 32               ; mettre la taille de l'écran à 32 caractères
-    ld      (&F3B0), a          ; envoie de la taille de l'écran
+    ld      (0xF3B0), a          ; envoie de la taille de l'écran
 
     ld      hl, Message
     call    PrintString
@@ -21,10 +21,10 @@ PrintString:
                                 ; le car est 255. Si oui, Z est mit à 1
     ret     z                   ; si Z est à 1, on retourne
     inc     hl
-    call    &00A2               ; fonction firmware pour afficher un caractère 
+    call    0x00A2               ; fonction firmware pour afficher un caractère 
                                 ; à l'écran le caractère est contenu dans hl
     jr      PrintString
     
 Message:    db      'Hello World!', 255
 
-    org     &C000               ; alignement de fin de cartouche (pour OpenMSX)
+    org     0xC000               ; alignement de fin de cartouche (pour OpenMSX)

From ccc8fd77375ede0712e6619fb7f0f4adaf1a2a1f Mon Sep 17 00:00:00 2001
From: rick <rick@gnous.eu>
Date: Tue, 1 Jun 2021 14:25:25 +0200
Subject: [PATCH 2/4] feat: Makefile

---
 Makefile  | 5 +++++
 README.md | 2 ++
 2 files changed, 7 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..98d9125
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+CC=sjasmplus
+CFLAGS=
+
+%: 
+	$(CC) $@.asm --raw=$@.rom
diff --git a/README.md b/README.md
index 1046388..4b67aa4 100644
--- a/README.md
+++ b/README.md
@@ -6,4 +6,6 @@ Le compilateur SJASMplus est utilisé afin de compiler les fichiers et [OpenMSX]
 sjasmplus hello.asm --raw=hello.rom
 ```
 
+Il est aussi possible d’utiliser le Makefile avec la commande `make hello`.
+
 Je m'appuie sur [le tuto de Chibiakumas](https://www.chibiakumas.com/z80/helloworld.php#LessonH3) pour le Hello worl.

From 87d2d813ab23293531158b3eacbe9651b7871911 Mon Sep 17 00:00:00 2001
From: rick <rick@gnous.eu>
Date: Tue, 1 Jun 2021 14:26:25 +0200
Subject: [PATCH 3/4] feat(gitignore): fichiers inutiles

---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b0edf4e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.lst
+*.rom

From db76a325a1977ab285e8e80983d920ca9f9944cd Mon Sep 17 00:00:00 2001
From: rick <rick@gnous.eu>
Date: Tue, 1 Jun 2021 14:27:50 +0200
Subject: [PATCH 4/4] =?UTF-8?q?fix:=20world=20bien=20=C3=A9crit?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 4b67aa4..4b32d5b 100644
--- a/README.md
+++ b/README.md
@@ -8,4 +8,4 @@ sjasmplus hello.asm --raw=hello.rom
 
 Il est aussi possible d’utiliser le Makefile avec la commande `make hello`.
 
-Je m'appuie sur [le tuto de Chibiakumas](https://www.chibiakumas.com/z80/helloworld.php#LessonH3) pour le Hello worl.
+Je m'appuie sur [le tuto de Chibiakumas](https://www.chibiakumas.com/z80/helloworld.php#LessonH3) pour le Hello world.