From 65ca3034d455b9934e7ff82813e3df49cf56cf87 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 29 Mar 2008 17:51:59 +0000 Subject: [PATCH] (c) and stuff git-svn-id: file:///home/notaz/opt/svn/PicoDrive@404 be3aeb3a-fb24-0410-a615-afba39da0efa --- Pico/carthw/carthw.c | 12 +++++++++--- Pico/carthw/svp/Memory.c | 2 +- Pico/carthw/svp/compiler.c | 4 ++++ Pico/carthw/svp/gen_arm.c | 5 +++++ Pico/carthw/svp/stub_arm.S | 5 +++++ 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Pico/carthw/carthw.c b/Pico/carthw/carthw.c index d22a235..eab13b8 100644 --- a/Pico/carthw/carthw.c +++ b/Pico/carthw/carthw.c @@ -1,12 +1,18 @@ /* - * should better do some pointer stuff here. But as none of these bankswitch + * Support for a few cart mappers. + * + * (c) Copyright 2008, Grazvydas "notaz" Ignotas + * Free for non-commercial use. + * + * + * I should better do some pointer stuff here. But as none of these bankswitch * while the game runs, memcpy will suffice. */ #include "../PicoInt.h" -/* 12-in-1 and 4-in-1. Assuming 2MB ROMs here. */ +/* 12-in-1 and 4-in-1. Assuming >= 2MB ROMs here. */ static unsigned int carthw_12in1_baddr = 0; static carthw_state_chunk carthw_12in1_state[] = @@ -110,7 +116,7 @@ static void carthw_realtec_write8(unsigned int a, unsigned int d, int realsize) } else elprintf(EL_ANOMALY, "realtec: unexpected write [%06x] %02x @ %06x", a, d, SekPc); - + if (realtec_bank >= 0 && realtec_size >= 0 && (realtec_bank != bank_old || realtec_size != size_old)) { diff --git a/Pico/carthw/svp/Memory.c b/Pico/carthw/svp/Memory.c index 2a49139..e835d32 100644 --- a/Pico/carthw/svp/Memory.c +++ b/Pico/carthw/svp/Memory.c @@ -1,4 +1,4 @@ -// The SVP chip emulator +// The SVP chip emulator, mem I/O stuff // (c) Copyright 2008, Grazvydas "notaz" Ignotas // Free for non-commercial use. diff --git a/Pico/carthw/svp/compiler.c b/Pico/carthw/svp/compiler.c index 911da17..7c06bad 100644 --- a/Pico/carthw/svp/compiler.c +++ b/Pico/carthw/svp/compiler.c @@ -1,3 +1,7 @@ +// SSP1601 to ARM recompiler + +// (c) Copyright 2008, Grazvydas "notaz" Ignotas +// Free for non-commercial use. #include "../../PicoInt.h" #include "compiler.h" diff --git a/Pico/carthw/svp/gen_arm.c b/Pico/carthw/svp/gen_arm.c index 00d5d2c..89db6a9 100644 --- a/Pico/carthw/svp/gen_arm.c +++ b/Pico/carthw/svp/gen_arm.c @@ -1,3 +1,8 @@ +// Basic macros to emit ARM instructions and some utils + +// (c) Copyright 2008, Grazvydas "notaz" Ignotas +// Free for non-commercial use. + #define EMIT(x) *tcache_ptr++ = x #define A_R4M (1 << 4) diff --git a/Pico/carthw/svp/stub_arm.S b/Pico/carthw/svp/stub_arm.S index cbfa52e..debcc0e 100644 --- a/Pico/carthw/svp/stub_arm.S +++ b/Pico/carthw/svp/stub_arm.S @@ -1,5 +1,10 @@ @ vim:filetype=armasm +@ Compiler helper functions and some SVP HLE code + +@ (c) Copyright 2008, Grazvydas "notaz" Ignotas +@ Free for non-commercial use. + .if 0 #include "compiler.h" .endif -- 2.39.2