minor improvements

This commit is contained in:
Zack Buhman 2023-03-12 01:52:51 +00:00
parent f49259ba72
commit d58f0a9e32
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ OPT ?= -Og
AARCH = --isa=sh2 --big AARCH = --isa=sh2 --big
AFLAGS = -g -gdwarf-4 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) 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 LDFLAGS = --gc-sections --no-warn-rwx-segment --print-memory-usage --entry=_start
CXXFLAGS = -fno-exceptions -fno-rtti CXXFLAGS = -fno-exceptions -fno-rtti
@ -94,7 +94,7 @@ sys_ip.elf: $(SYS_IP_OBJ)
/=$(LIB)/segasmp/smp_bib.txt /=$(LIB)/segasmp/smp_bib.txt
%.cue: %.iso %.cue: %.iso
@echo "FILE \"${<}\" BINARY" > $@ @echo "FILE \"$(notdir ${<})\" BINARY" > $@
@echo " TRACK 01 MODE1/2048" >> $@ @echo " TRACK 01 MODE1/2048" >> $@
@echo " INDEX 01 00:00:00" >> $@ @echo " INDEX 01 00:00:00" >> $@

View File

@ -42,5 +42,5 @@ scsp = 0x25A00000;
vdp1 = 0x25C00000; vdp1 = 0x25C00000;
vdp2 = 0x25E00000; vdp2 = 0x25E00000;
scu = 0x25FE0000; scu = 0x25FE0000;
sh2_vec = 0x26000000; sh2_vec = 0x06000000;
sh2 = 0xfffffe00; sh2 = 0xfffffe00;

2
vdp1.h
View File

@ -94,7 +94,7 @@ enum colr_bit {
//enum size_bit { //enum size_bit {
#define SIZE__Y(n) ((n) << 0) #define SIZE__Y(n) ((n) << 0)
#define SIZE__X(n) (((n) >> 2) << 7) #define SIZE__X(n) (((n) >> 3) << 8)
//}; //};
/* memory offsets */ /* memory offsets */