Changeset ff8d800 in buchla-emu
- Timestamp:
- 07/17/2017 05:07:53 AM (7 years ago)
- Branches:
- master
- Children:
- 9373f5e
- Parents:
- 3326515
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.cproject
r3326515 rff8d800 29 29 <listOptionValue builtIn="false" value=""${workspace_loc:/buchla-emu/emu}""/> 30 30 <listOptionValue builtIn="false" value=""${workspace_loc:/buchla-emu/build}""/> 31 <listOptionValue builtIn="false" value="/opt/sdl2/include"/> 31 32 </option> 32 33 <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1138147073" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> … … 46 47 <sourceEntries> 47 48 <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="build"/> 48 <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="cpu"/>49 <entry excluding="m68k_in.c" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="cpu"/> 49 50 <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="emu"/> 50 51 </sourceEntries> -
Makefile
r3326515 rff8d800 1 FLAGS := -std=c99 -O2 -gdwarf-4 1 SDL2 := /opt/sdl2 2 SDL2_INC := $(SDL2)/include 3 SDL2_LIB := $(SDL2)/lib 4 5 FLAGS := -std=c99 -pthread -O2 -gdwarf-4 2 6 3 7 FLAGS_CPU := $(FLAGS) -I cpu -I build … … 8 12 -Wpedantic -Wconversion -Wsign-conversion -Wshadow \ 9 13 -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls \ 10 -I cpu -I emu -I build 14 -I cpu -I emu -I build -I $(SDL2_INC) 11 15 12 16 FLAGS_LNK := $(FLAGS) -Wall -Wextra … … 45 49 gcc $(FLAGS_CPU) -c -o $@ $< 46 50 47 EMU_C := main.c 51 EMU_C := main.c cpu.c sdl.c 48 52 EMU_O := $(EMU_C:.c=.o) 49 53 EMU_OP := $(EMU_O:%=build/%) … … 53 57 54 58 buchla: $(CPU_OP) $(GEN_OP) $(EMU_OP) 55 gcc $(FLAGS_LNK) -o buchla $(CPU_OP) $(GEN_OP) $(EMU_OP) 59 gcc $(FLAGS_LNK) -o buchla \ 60 $(CPU_OP) $(GEN_OP) $(EMU_OP) \ 61 $(SDL2_LIB)/libSDL2.a -ldl -lm 62 63 run: buchla 64 ./buchla 56 65 57 66 val: buchla 58 67 valgrind --leak-resolution=high --track-fds=yes --leak-check=full \ 59 --show-reachable=yes ./buchla68 --show-reachable=yes --suppressions=buchla.supp ./buchla 60 69 61 70 clean: -
emu/main.c
r3326515 rff8d800 1 #include <stdbool.h> 2 #include <stddef.h> 3 #include <stdint.h> 4 5 #include <m68k.h> 6 7 uint32_t m68k_read_disassembler_8(uint32_t addr) 8 { 9 (void)addr; 10 return 0; 11 } 12 13 uint32_t m68k_read_disassembler_16(uint32_t addr) 14 { 15 (void)addr; 16 return 0; 17 } 18 19 uint32_t m68k_read_disassembler_32(uint32_t addr) 20 { 21 (void)addr; 22 return 0; 23 } 24 25 uint32_t m68k_read_memory_8(uint32_t addr) 26 { 27 (void)addr; 28 return 0; 29 } 30 31 uint32_t m68k_read_memory_16(uint32_t addr) 32 { 33 (void)addr; 34 return 0; 35 } 36 37 uint32_t m68k_read_memory_32(uint32_t addr) 38 { 39 (void)addr; 40 return 0; 41 } 42 43 void m68k_write_memory_8(uint32_t addr, uint32_t val) 44 { 45 (void)addr; 46 (void)val; 47 } 48 49 void m68k_write_memory_16(uint32_t addr, uint32_t val) 50 { 51 (void)addr; 52 (void)val; 53 } 54 55 void m68k_write_memory_32(uint32_t addr, uint32_t val) 56 { 57 (void)addr; 58 (void)val; 59 } 1 #include <all.h> 60 2 61 3 int32_t main(int32_t argc, char *argv[]) … … 63 5 (void)argc; 64 6 (void)argv; 7 8 sdl_init(); 9 10 cpu_verbose = true; 11 cpu_loop(); 12 13 sdl_quit(); 65 14 return 0; 66 15 } 67
Note:
See TracChangeset
for help on using the changeset viewer.