From d58f0a9e32071f7bd6639bfc6264ef85eb6d8a53 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Sun, 12 Mar 2023 01:52:51 +0000 Subject: [PATCH] minor improvements --- common.mk | 4 ++-- sh2.lds | 2 +- vdp1.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common.mk b/common.mk index 44a2514..85b649d 100644 --- a/common.mk +++ b/common.mk @@ -3,7 +3,7 @@ OPT ?= -Og AARCH = --isa=sh2 --big AFLAGS = -g -gdwarf-4 -CFLAGS += -ffunction-sections -fdata-sections -fshort-enums -ffreestanding -nostdlib +CFLAGS += -falign-functions=4 -ffunction-sections -fdata-sections -fshort-enums -ffreestanding -nostdlib CFLAGS += -Wall -Werror -Wfatal-errors -Wno-error=unused-variable -g -gdwarf-4 $(OPT) LDFLAGS = --gc-sections --no-warn-rwx-segment --print-memory-usage --entry=_start CXXFLAGS = -fno-exceptions -fno-rtti @@ -94,7 +94,7 @@ sys_ip.elf: $(SYS_IP_OBJ) /=$(LIB)/segasmp/smp_bib.txt %.cue: %.iso - @echo "FILE \"${<}\" BINARY" > $@ + @echo "FILE \"$(notdir ${<})\" BINARY" > $@ @echo " TRACK 01 MODE1/2048" >> $@ @echo " INDEX 01 00:00:00" >> $@ diff --git a/sh2.lds b/sh2.lds index 1301032..81c7085 100644 --- a/sh2.lds +++ b/sh2.lds @@ -42,5 +42,5 @@ scsp = 0x25A00000; vdp1 = 0x25C00000; vdp2 = 0x25E00000; scu = 0x25FE0000; -sh2_vec = 0x26000000; +sh2_vec = 0x06000000; sh2 = 0xfffffe00; diff --git a/vdp1.h b/vdp1.h index 4977aae..ae5f8a8 100644 --- a/vdp1.h +++ b/vdp1.h @@ -94,7 +94,7 @@ enum colr_bit { //enum size_bit { #define SIZE__Y(n) ((n) << 0) -#define SIZE__X(n) (((n) >> 2) << 7) +#define SIZE__X(n) (((n) >> 3) << 8) //}; /* memory offsets */