Commit Graph

  • 330cba592d Cosmetic, and add missing files to the CMakeLists. rewrite Godzil 2022-06-27 22:33:36 +01:00
  • e48f7a76a7 Merge the latest changes. Godzil 2022-06-27 21:58:12 +01:00
  • 4800cf0823 Commented some code to let it build. Godzil 2022-06-27 18:20:11 +01:00
  • a37414b079 Cleanup memory and added file_access. Godzil 2022-06-27 18:19:51 +01:00
  • e9d7f1aa04 Add base address for IO ports to easily allow multiple instance of the same device. Godzil 2022-06-27 17:57:03 +01:00
  • 37e4b219d4 Add a skeleton for the interrupt controller Godzil 2022-06-27 17:04:55 +01:00
  • d6a2a77303 Add the possibility to pass parameter to device_init and add a device_type_t used to know what parameter to pass to init when needed. Godzil 2022-06-27 17:04:37 +01:00
  • f45995167e Add some temporary disabled code for each peripheral (copied from io.c) Godzil 2022-06-27 17:02:35 +01:00
  • 83e4b8d5d9 Some more cosmetics. Godzil 2022-06-27 17:01:07 +01:00
  • 4d345079ae Fix building Most patches are temporary and there just to let the code to build. It will not work in the current state. Also now force the use of paged memory. It was not working properly because of the way the old GPU code is working. Godzil 2022-03-14 15:05:18 +00:00
  • 5f61fb612a Merge branch 'master' into rewrite Godzil 2022-06-25 21:23:05 +01:00
  • 2305ce975b Mostly cosmetic changes Update headers year Remove useless /// headers that eat lines for no reasons Fixed build issues because of stupid me doing stupid stuff in prototypes. Added color and mono GPU stub. Also a tad of code cleaning. Godzil 2022-03-14 14:50:41 +00:00
  • 01ffa3a834
    Add apt update. part 2 master Manoël Trapier 2022-03-12 12:04:45 +00:00
  • fce2815300
    Add apt update. Manoël Trapier 2022-03-12 12:04:18 +00:00
  • 662a45d02f Create codeql-analysis.yml Manoël Trapier 2022-02-28 15:14:50 +00:00
  • bb324dc12e
    Remplace travis build badge with github's one. Manoël Trapier 2022-02-28 12:33:51 +00:00
  • 017983f692 Trying to make the google action to work. Godzil 2022-02-28 12:31:43 +00:00
  • b4b1bd83d0 Fix a typo Godzil 2022-02-25 12:51:43 +00:00
  • a85e1ff083
    Need to checkout with submodule silly! Manoël Trapier 2022-02-23 18:02:31 +00:00
  • 4c9ba704ea
    Testing github action Manoël Trapier 2022-02-23 17:59:53 +00:00
  • 6f56a8efda Starting a rewrite of how the IO works. Currently 100% broken, also going to change how devices are selected for each system so no more if/else everywhere and system should be more accurate. Godzil 2021-12-20 15:43:04 +00:00
  • 8fa2ef06ab Rename some functions and a tad of cleanup. Godzil 2021-12-17 23:13:46 +00:00
  • 4fc5193bc7 Add testserial part of the build. Godzil 2021-11-23 14:56:27 +00:00
  • 1df15b0192 Uniformise copyright headers. Godzil 2021-11-23 14:44:03 +00:00
  • 6f539fff1e Not sure how I missed the R_RM8 and R_RM16 decoder. Godzil 2021-04-16 00:39:26 +01:00
  • c90b99d650 Fix table size. Godzil 2021-04-16 00:33:48 +01:00
  • 49a1943cda Add proper support for indirect call/jmp Godzil 2021-04-16 00:32:56 +01:00
  • 4082d37cb0 Add missing mov cs, rm and mov rm, cs opcode. Godzil 2021-04-16 00:32:08 +01:00
  • 146e2b2c1d Fix some headers (code is original here) and some cosmetics v0.9 Godzil 2021-04-15 23:17:38 +01:00
  • 698d960bed Add some useful GPU debug logs Godzil 2021-04-15 23:17:01 +01:00
  • 62c5812b34 Add #ifdef around EEPROM debug prints Godzil 2021-04-15 23:08:03 +01:00
  • 7f7410c8f8 First step to get a debugger: Godzil 2021-04-15 23:07:13 +01:00
  • 0e02ee829f I'm constantly amazed by how poorly coded this emulator was. Godzil 2021-04-09 23:55:58 +01:00
  • 4512def23a Change how SRAM/EEPROM mask are calculated Godzil 2021-04-09 23:19:23 +01:00
  • 46e90dcca1 Remove useless variable Godzil 2021-04-09 23:18:53 +01:00
  • 2e9685215b Starting work on making memory access more straigforward with less branching code. Godzil 2021-04-09 23:18:31 +01:00
  • bddcaddf1f Fix a signed/unsigned warning Godzil 2021-04-09 23:11:25 +01:00
  • 5559269387 Use stdbool instead of non standard ifdefs Godzil 2021-04-09 23:11:10 +01:00
  • b3c0a39d00 Init the memory after everything is loaded Godzil 2021-04-09 23:09:55 +01:00
  • 8ab6b20815 Fix a mistake in loading SRAM/EEP file name Godzil 2021-04-09 23:09:22 +01:00
  • dd53d5bfd9 Update the stub boot rom to "enable" the 16bit cart access mode. Godzil 2021-04-09 23:08:29 +01:00
  • 5ba3560378 Let's use double instead of integer to the ticks. Godzil 2021-04-09 23:07:46 +01:00
  • ac3779e640 Add a way to pretend displaying while actualy not displayint Godzil 2021-04-06 23:11:30 +01:00
  • da26704390 Oops. Stupid memset.. Godzil 2021-04-06 23:10:30 +01:00
  • 2ced18d151 Change the log to my good old trusty log framework. Godzil 2021-04-06 23:08:22 +01:00
  • 359b05a518 Add a link to Mesen Godzil 2021-04-05 15:16:17 +01:00
  • 3771c65f2c Add a nifty travis badge to show how great the build it! Godzil 2021-04-05 15:01:48 +01:00
  • 4f4e4d148a Add a fancy README. Godzil 2021-04-05 14:57:41 +01:00
  • cc1060775c Major code cleanup and code reformating Godzil 2021-04-05 14:19:35 +01:00
  • 4e5f796d6a Remove the "color schemes". Godzil 2021-04-05 13:40:29 +01:00
  • 3818e03e55 Now that we have system, let's also load the Swan Crystal irom. Godzil 2021-04-05 13:37:31 +01:00
  • 94dc2fc463 Missed some changes for the color/b&w logic changes Godzil 2021-04-05 13:36:02 +01:00
  • d45d838378 Remove all the unused "statistics" code. Godzil 2021-04-05 13:33:13 +01:00
  • 18d9038639 Update .gitignore Godzil 2021-04-05 13:23:59 +01:00
  • 925bfd3b65 Change the way the system type is managed and changed the logic on how the GPU use "color". Now IO register tell properly the selected system, and B&W swan does not allow to switch to color. Also the Swan do not start in color mode as it should. Godzil 2021-04-05 13:23:44 +01:00
  • 330262b55c Remove the "initial IO" table as most values are wrong anyway. If there are some initial value that need to be set, it is per system, not globally like that. Godzil 2021-04-05 12:24:12 +01:00
  • 357d4e4ede Deleted the makefile as it is no longer supported Godzil 2021-04-05 00:20:22 +01:00
  • d45822951f As this is C project, rename all source file to .c Godzil 2021-04-05 00:18:55 +01:00
  • 864fda651d Update travis file. Godzil 2021-04-04 23:35:13 +01:00
  • 065849cf68 Add stdint.h into headers that (may) need it. Godzil 2021-04-04 23:28:36 +01:00
  • dbc7d6e940 Update splash string to show "NewOswan" Godzil 2021-04-04 23:18:11 +01:00
  • 432844304e Add a simple boot rom stub so we can start the emulated console without need for special case in the code, and not adding any copyrighted material in the project. Also automatically copy the stub rom in the build folder. Godzil 2021-04-04 23:15:50 +01:00
  • 61937a1391 Merge branch 'master' into debugger debugger Godzil 2021-04-04 22:13:59 +01:00
  • e28317d29e Disable the IO Dump by default. Godzil 2021-04-04 21:17:34 +01:00
  • f32928b0c3 Remove -Werror by default and add a cmake option to enable them. Godzil 2021-04-04 21:14:53 +01:00
  • e4cf98bfe1 Add a debug function to log all access to IO regs. Godzil 2021-04-04 21:05:48 +01:00
  • a89e253d9c Now use glfw/OpenGL for displaying. switch_to_glfw Godzil 2021-04-04 20:55:40 +01:00
  • 88468d6028 Now build without SDL Godzil 2020-12-12 19:28:21 +00:00
  • 875f0edb46 printf can be a pain at time. Godzil 2020-11-14 20:30:09 +00:00
  • 8bd2170f44 Remove some of the Rotation code. Godzil 2020-11-14 20:28:31 +00:00
  • 564e0ea2e6 Remove more SDL references Godzil 2020-11-14 20:27:58 +00:00
  • 8976d4363f Remove SDLptc.h, the "Console" class and related code. Godzil 2020-11-14 20:27:25 +00:00
  • f3aca9a3c7 Start working on implementing the video interface. First disabling/removing all the SDL related function call/variables Godzil 2020-11-14 20:16:46 +00:00
  • ece8a07dcf Remove SDL refenrence in the non working audio emulation. Godzil 2020-11-14 20:15:50 +00:00
  • 9035a922c3 Add GLFW in the CMakeLists, and remove all SDL references. Godzil 2020-11-14 20:14:57 +00:00
  • 02c16b7987 Add glfw as an external module Godzil 2020-11-14 19:36:54 +00:00
  • 8c79f6f417 Clang should be happy now? Godzil 2020-02-11 00:53:32 +00:00
  • 2802e64697 clang don't like these unused tables. Godzil 2020-02-11 00:42:33 +00:00
  • e8d7d8473e GCC quirkness makes no sense sometimes. Godzil 2020-02-11 00:38:17 +00:00
  • ed93d90c51 Make sure we are not forcing to GCC and add a bit of debug. CMake find the proper lib but not the makefile? WTF Godzil 2020-02-11 00:29:34 +00:00
  • 6e857bf630 Stupid names ubuntu; "libsdl1.2debian", seriously? Godzil 2020-02-11 00:24:04 +00:00
  • 62c43f311c Trying to add SDL lib package (seems -dev don't install it) Godzil 2020-02-11 00:21:17 +00:00
  • 3552bb8bf9 Silly me... Godzil 2020-02-11 00:20:36 +00:00
  • 466f910c9a Try to also build cmake build. Godzil 2020-02-11 00:18:06 +00:00
  • a5ce89d14f Hmmm it was lurking in other places! Godzil 2020-02-11 00:17:38 +00:00
  • c26f935072 Interesting that not all GCC versions complain here. Godzil 2020-02-11 00:14:36 +00:00
  • 4967dcab21 I honestly don't care about the return value of write. Godzil 2020-02-11 00:07:16 +00:00
  • a0e5006a18 Add dumpinfo to cmake, and set the CXX standard to C++98 as it should on that project. Godzil 2020-02-11 00:05:22 +00:00
  • 6d78199031 Update .gitignore Godzil 2020-02-11 00:04:42 +00:00
  • 6d5658eb68 Make gcc happy (and fix a potential issue) Godzil 2020-02-11 00:00:23 +00:00
  • 667f655d22 Add preliminary CMake build. Not replacing the makefile for now, will in the future. Godzil 2020-02-10 23:59:01 +00:00
  • 3e6f096191 Add CMake module to get Git version. Godzil 2020-02-10 23:58:18 +00:00
  • 0fadff165b Update travis to use latest ubuntu instead of the old 14.04 Godzil 2020-02-07 18:00:54 +00:00
  • cf80c9624c Add tentative travis build script Godzil 2020-02-07 17:58:12 +00:00
  • b5488bacba Add portaudio for futur audio work. Godzil 2020-02-07 17:56:27 +00:00
  • 778c624664 Early changes to add a x86 debugger. Godzil 2020-02-07 17:38:24 +00:00
  • ba6f5d76c9 Starting to work on a proper GUI guitest Godzil 2020-02-07 17:35:47 +00:00
  • f592057e48 Move everything in the root folder Godzil 2020-01-15 19:06:45 +00:00
  • ec2a2f937f Update .gitignore Godzil 2020-01-15 19:02:30 +00:00
  • ce85101e38 Remove root makefile. Godzil 2020-01-15 18:59:47 +00:00