diff options
author | Oxore <oxore@protonmail.com> | 2023-05-06 23:23:59 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-06 23:23:59 +0300 |
commit | d39090b6a94b7c1700d190a1bb63e85ff1c1f4ad (patch) | |
tree | 3c1702dd04aad5ba79b243422c75a21a26a4bc16 /1_hello_world | |
parent | ebcd974b8e18a2033c94cb0050dab73964d6c19b (diff) |
Add 2_scroll_planes demo
Diffstat (limited to '1_hello_world')
-rw-r--r-- | 1_hello_world/Makefile | 6 | ||||
-rw-r--r-- | 1_hello_world/main.c | 2 |
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> |