summaryrefslogtreecommitdiff
path: root/1_hello_world
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-06 23:23:59 +0300
committerOxore <oxore@protonmail.com>2023-05-06 23:23:59 +0300
commitd39090b6a94b7c1700d190a1bb63e85ff1c1f4ad (patch)
tree3c1702dd04aad5ba79b243422c75a21a26a4bc16 /1_hello_world
parentebcd974b8e18a2033c94cb0050dab73964d6c19b (diff)
Add 2_scroll_planes demo
Diffstat (limited to '1_hello_world')
-rw-r--r--1_hello_world/Makefile6
-rw-r--r--1_hello_world/main.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/1_hello_world/Makefile b/1_hello_world/Makefile
index 0a4b3a2..da61f6a 100644
--- a/1_hello_world/Makefile
+++ b/1_hello_world/Makefile
@@ -8,12 +8,12 @@ _LDFLAGS = $(LDFLAGS) $(ARCHFLAGS) $(OPTFLAGS) $(addprefix -T,$(LDSCRIPTS)) -Wl,
OBJECTS=startup.o main.o
.PHONY: all
-all: hellorom.bin
+all: hello.bin
%.bin: %.elf Makefile
m68k-none-elf-objcopy -O binary $< $@
-hellorom.elf: $(OBJECTS) $(LDSCRIPTS) Makefile
+hello.elf: $(OBJECTS) $(LDSCRIPTS) Makefile
m68k-none-elf-gcc -o $@ $(OBJECTS) $(_LDFLAGS)
OBJECTS: Makefile
@@ -22,4 +22,4 @@ OBJECTS: Makefile
m68k-none-elf-gcc -c $< -o $@ $(_CFLAGS)
clean:
- rm -rfv hellorom.elf hellorom.bin $(OBJECTS)
+ rm -rfv hello.elf hello.bin $(OBJECTS)
diff --git a/1_hello_world/main.c b/1_hello_world/main.c
index 1a30562..811035b 100644
--- a/1_hello_world/main.c
+++ b/1_hello_world/main.c
@@ -1,4 +1,4 @@
-// Rewritten from https://github.com/BigEvilCorporation/megadrive_samples/blob/master/1_hello_world/hello.asm
+// Rewritten from https://github.com/BigEvilCorporation/megadrive_samples/blob/313e16db9c8cdd0bcd0c98223b3d4245f921b31d/1_hello_world/hello.asm
#include <stdint.h>
#include <stddef.h>