From d39090b6a94b7c1700d190a1bb63e85ff1c1f4ad Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 6 May 2023 23:23:59 +0300 Subject: Add 2_scroll_planes demo --- 1_hello_world/Makefile | 6 +++--- 1_hello_world/main.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '1_hello_world') 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 #include -- cgit v1.2.3