If not for the attribute flag, the proccesor
would automatically makes padding between the
elements of the struct since they jump over
the byte boundary for efficiency purposes,
making all elements easier to acces for the
cpu. This however destroys our entire union, since
its made with no paddin in mind, the attribute flag
removes the padding
+Makefile cleaning
+*Reg.bits renamed to more appropriate .field
main
parent
e00b5d4844
commit
3ecac1636f
@ -1,7 +1,9 @@ |
||||
media |
||||
exec |
||||
nesem |
||||
*log* |
||||
*cache* |
||||
*.patch |
||||
*.out |
||||
*dump* |
||||
*.json |
||||
|
||||
@ -1,16 +1,17 @@ |
||||
CC = cc
|
||||
CFLAGS = -g -DDEBUG -static
|
||||
CFLAGS = -static -Ofast
|
||||
CDEBUGFLAGS = -g -DDEBUG -static
|
||||
RM = rm -rf
|
||||
OUTFILE = exec
|
||||
OUTFILE = nesem
|
||||
|
||||
|
||||
default: all |
||||
|
||||
all: |
||||
$(CC) bus.c cpu.c cartridge.c ppu.c -Ofast -o $(OUTFILE)
|
||||
$(CC) $(CFLAGS) bus.c cpu.c cartridge.c ppu.c -o $(OUTFILE)
|
||||
|
||||
clean: |
||||
$(RM) $(OUTFILE)
|
||||
|
||||
debug: |
||||
$(CC) $(CFLAGS) bus.c cpu.c ppu.c cartridge.c -o $(OUTFILE)
|
||||
$(CC) $(CDEBUGFLAGS) bus.c cpu.c ppu.c cartridge.c -o $(OUTFILE)
|
||||
|
||||
Loading…
Reference in new issue