3.8b - Cleanup across the board. File headers updated for 2023 and all tabs removed/replaced with spaces for cleaner formatting. Minor memory re-org to be as efficient as possible with the resources available.

This commit is contained in:
wavemotion-dave 2022-12-28 07:14:54 -05:00
parent 30bb98806a
commit eb94c24469
97 changed files with 558 additions and 520 deletions

View File

@ -14,7 +14,7 @@ include $(DEVKITARM)/ds_rules
export TARGET := NINTV-DS
export TOPDIR := $(CURDIR)
export VERSION := 3.8a
export VERSION := 3.8b
ICON := -b $(CURDIR)/logo.bmp "NINTV-DS $(VERSION);wavemotion-dave;https://github.com/wavemotion-dave/NINTV-DS"

Binary file not shown.

View File

@ -25,8 +25,8 @@ Features :
* High Scores for up to 10 scores pre game with various sorting options.
* Cheat / Hack support using NINTV-DS.cht (see 'extras' folder and place in /data directory)
* Tons of button / controller mapping options. Dual-Controller support (run and shoot at the same time).
* JLP support for accelerated functions, extra RAM and flash memory. When loading a game, use the X button to load and force JLP support ON if not auto-detected.
* ECS support for ECS games including sound-enchanced games like Space Patrol (use ECS mini-Keyboard Overlay)
* JLP support for accelerated functions, extra RAM and flash memory. When loading a game, use the X button to load with options and force JLP support ON if not auto-detected.
* ECS support for ECS games including sound-enchanced games like Space Patrol. If not auto-detected, when loading a game use the X button to load with options.
Technical Specs :
----------
@ -46,16 +46,17 @@ Dual Action B uses the disc from Controller 1 and the Buttons/Keypad for Control
Missing / Known Issues :
-----------------------
ECS support is partial. No UART / Cassette. On the older DS-LITE/PHAT, a minimal ECS page-flipping scheme will let you play all the commercial ECS games including
ECS support is partial. No UART / Cassette.
The older DS-LITE/PHAT can only support a minimal ECS page-flipping scheme will let you play all the commercial ECS games including
World Series Baseball (without voice), MindStrike, Jetsons and Scooby Doo Maze Chase. On the DSi or above running with extra memory, a full page-flipping scheme
is employed and it should play anything you throw at it (and World Series will have voice). Each ECS game will allow you to use the Intellivision Keypad to enter
just enough keyboard information to start the game or you can pick the ECS mini-keyboard overlay. Larger page flipping/bankswitched homewbrew games will not run.
just enough keyboard information to start the game or you can pick the ECS mini-keyboard overlay.
Check for updates on my web site : https://github.com/wavemotion-dave/NINTV-DS
License :
-----------------------
Copyright (c) 2021-2022 Dave Bernazzani (wavemotion-dave)
Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
Copying and distribution of this emulator, its source code and associated
readme files, with or without modification, are permitted in any medium without

View File

@ -1,3 +1,14 @@
// =====================================================================================
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds/arm7/audio.h>
#include <nds/fifocommon.h>
#include <nds/fifomessages.h>

View File

@ -1,3 +1,14 @@
// =====================================================================================
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
/*---------------------------------------------------------------------------------
default ARM7 core

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021-2022 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __CHEAT_H
#define __CHEAT_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __CONFIG_H
#define __CONFIG_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <fat.h>

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __CONFIG_H
#define __CONFIG_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __DEBUGGER_H
#define __DEBUGGER_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021-2022 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __DS_TOOLS_H
#define __DS_TOOLS_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "AY38900.h"
#include "ProcessorBus.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <string.h>
#include "AY38900.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "AY38914.h"
#include "AudioMixer.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <string.h>

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "AudioOutputLine.h"
#include "AudioMixer.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "BackTabRAM.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <string.h>
#include "CP1610.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,3 +1,14 @@
// =====================================================================================
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include "ECS.h"
extern UINT8 ecs_ram[];

View File

@ -1,3 +1,13 @@
// =====================================================================================
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef ECS_H
#define ECS_H

View File

@ -1,3 +1,13 @@
// =====================================================================================
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include "ECSKeyboard.h"
#include "HandController.h"

View File

@ -1,3 +1,14 @@
// =====================================================================================
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef ECSKEYBOARD_H
#define ECSKEYBOARD_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "Emulator.h"
#include "Intellivision.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "GRAM.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "HandController.h"
#include "Intellivision.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <time.h>

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include "Intellivoice.h"
void Intellivoice::getState(IntellivoiceState *state)

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef INTELLIVOICE_H
#define INTELLIVOICE_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <fat.h>

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef JLP_H
#define JLP_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include "MemoryBus.h"
@ -41,13 +42,14 @@ public:
// -------------------------------------------------------------------------------
// This is a serious resource hog... it's multiple 16-bit 64k arrays take
// up a significant bit of our RAM... the max overlapped memories is what
// soaks up quite a bit of main RAM. We limit this to only 3 overlapping
// soaks up quite a bit of main RAM. We limit this for older DS hardware
// memories per address location which is sufficient provided we are only
// loading normal ROMs into a stock intellivision with, at most, an intellivoice
// or the JLP cart as the only peripherals... still, this is a strain on the
// older DS-LITE/PHAT. The original BLISS core allowed 16 overlapping memory
// regions (to handle page flipping) which barely fit into the DSi and wouldn't
// run on the DS-LITE/PHAT so we've stripped that way down to the bare essentials.
// regions (to handle page flipping) which does fit into the DSi but is too
// large for the original DS-LITE/PHAT so for older hardware, we strip down
// to the bare essentials.
// -------------------------------------------------------------------------------
UINT32 *overlappedMemoryPool = NULL;
@ -71,7 +73,11 @@ MemoryBus::MemoryBus()
memset(writeableMemoryCounts, 0, sizeof(UINT8) * size);
writeableMemorySpace = new Memory**[size];
// We do this rather than allocate peicemeal so we avoid malloc overhead and extra bytes padded (saves almost 500K on DS)
// ---------------------------------------------------------------------------------------------------------------------------
// We do this rather than allocate piecemeal so we avoid malloc overhead and extra bytes padded (saves almost 500K on DS)
// On the DS with 3 overlapped memories (enough for most games), this is still 1.5MB of memory (out of the 3.5MB available)
// On the DSi with a full 16 overlapped memories (enough for any game), this is a whopping 8MB (out of the 15.5MB available)
// ---------------------------------------------------------------------------------------------------------------------------
overlappedMemoryPool = new UINT32[size*MAX_OVERLAPPED_MEMORIES*2];
for (i = 0; i < size; i++)
@ -101,6 +107,8 @@ MemoryBus::MemoryBus()
MemoryBus::~MemoryBus()
{
delete[] writeableMemoryCounts;
delete[] writeableMemorySpace;
delete[] readableMemorySpace;
delete[] overlappedMemoryPool;
}

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
@ -33,7 +33,7 @@ class MemoryBus
void reset();
inline UINT16 peek(UINT16 location) {if (readableMemoryCounts[location] == 1) return readableMemorySpace[location][0]->peek(location); else return peek_slow(location);}
inline UINT16 peek(UINT16 location) {if (((UINT16 *) 0x06820000)[location] == 1) return readableMemorySpace[location][0]->peek(location); else return peek_slow(location);}
UINT16 peek_slow(UINT16 location);
// ------------------------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "ProcessorBus.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "../ds_tools.h"
#include "Intellivision.h"
@ -38,34 +39,41 @@ RAM::RAM(UINT16 size, UINT16 location, UINT16 readAddressMask, UINT16 writeAddre
if ((location == JLP_RAM_ADDRESS) && (size == JLP_RAM_SIZE))
{
image = (UINT16*)jlp_ram; // Special 8K words of 16-bit RAM
memset(jlp_ram, 0x00, JLP_RAM_SIZE);
}
else if ((location == GRAM_ADDRESS) && (size == GRAM_SIZE))
{
image = (UINT16*)gram_image; // Special fixed fast 8-bit RAM
memset(gram_image, 0x00, GRAM_SIZE);
}
else if ((bitWidth == 8) && ((size == 0x400) || (size == ECS_RAM_SIZE)))
{
image = (UINT16*)ecs_ram8; // Use this for 8-bit RAM on the ECS, USFC Chess and Land Battle (or others if they have 1K or 2K of 8-bit RAM on board the cart)
memset(ecs_ram8, 0x00, ECS_RAM_SIZE);
}
else if ((location == RAM16BIT_LOCATION) && (size == RAM16BIT_SIZE))
{
image = (UINT16*)inty_16bit_ram; // Internal 16-bit Intellivision RAM
memset(inty_16bit_ram, 0x00, RAM16BIT_SIZE);
}
else if ((location == RAM8BIT_LOCATION) && (size == RAM8BIT_SIZE))
{
image = (UINT16*)inty_8bit_ram; // Internal 8-bit Intellivision RAM
memset(inty_8bit_ram, 0x00, RAM8BIT_SIZE);
}
else if (size >= 0x100) // And for any game needing 256 bytes/words or more of extra RAM we use the slow ram buffer
{
image = (UINT16*)&slow_ram16[slow_ram16_idx]; // Slow RAM for one-off carts that declare a lot of extra RAM (mostly demos)
slow_ram16_idx += size;
if (slow_ram16_idx > 0x4000) FatalError("OUT OF SLOW MEMORY");
else for (UINT16 i=0; i<size; i++) image[i] = 0;
}
else
{
image = &fast_ram16[fast_ram16_idx]; // Otherwise it's a small pool being requested... "allocate" it from the internal fast buffer... should never run out since this will just be internal Intellivision RAM
fast_ram16_idx += size;
if (fast_ram16_idx > sizeof(fast_ram16)) FatalError("OUT OF FAST MEMORY");
else for (UINT16 i=0; i<size; i++) image[i] = 0;
}
}

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <stdio.h>
#include <string.h>
#include "ROM.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "SP0256.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include "SP0256.h"
#include "SP0256_Registers.h"

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <string.h>

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
@ -41,7 +41,6 @@ class VideoBus
private:
VideoProducer* videoProducers[MAX_VIDEO_PRODUCERS];
UINT32 videoProducerCount;
};
#endif

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
@ -26,16 +26,8 @@ typedef signed short INT16;
typedef unsigned short UINT16;
typedef signed int INT32;
typedef unsigned int UINT32;
// There is no ANSI standard for 64 bit integers :(
#ifdef _MSC_VER
typedef __int64 INT64; // MS VC++
typedef unsigned __int64 UINT64; // MS VC++
#else
typedef signed long long int INT64; // C99 C++11
typedef unsigned long long int UINT64; // C99 C++11
#endif
typedef char CHAR;
#if !defined(BOOL)
@ -65,11 +57,6 @@ extern INT32 debug[];
#endif
#endif
#define SWAP32BIT(swap) ((((swap) << 24) & 0xFF000000) | \
(((swap) << 8) & 0x00FF0000) | \
(((swap) >> 8) & 0x0000FF00) | \
(((swap) >> 24) & 0x000000FF))
#if !defined(__LITTLE_ENDIAN__) && defined(_WIN32)
#define __LITTLE_ENDIAN__ (1)
#endif
@ -112,73 +99,8 @@ typedef struct
#define MAX_PATH 256
#endif
// total hack for non-windows
#ifndef GUID_SysKeyboard
#define GUID_SysKeyboard (GUID){0}
#define DIK_NUMPAD7 ((INT32)0x81)
#define DIK_NUMPAD8 ((INT32)0x41)
#define DIK_NUMPAD9 ((INT32)0x21)
#define DIK_NUMPAD4 ((INT32)0x82)
#define DIK_NUMPAD5 ((INT32)0x42)
#define DIK_NUMPAD6 ((INT32)0x22)
#define DIK_NUMPAD1 ((INT32)0x84)
#define DIK_NUMPAD2 ((INT32)0x44)
#define DIK_NUMPAD3 ((INT32)0x24)
#define DIK_NUMPADPERIOD ((INT32)0x88)
#define DIK_NUMPAD0 ((INT32)0x48)
#define DIK_NUMPADENTER ((INT32)0x28)
#define DIK_SPACE ((INT32)0xA0)
#define DIK_LALT ((INT32)0x00)
#define DIK_LCONTROL ((INT32)0x60)
#define DIK_RCONTROL ((INT32)0xC0)
#define DIK_UP ((INT32)0x04)
#define DIK_W ((INT32)0x16)
#define DIK_RIGHT ((INT32)0x02)
#define DIK_S ((INT32)0x13)
#define DIK_DOWN ((INT32)0x01)
#define DIK_A ((INT32)0x19)
#define DIK_LEFT ((INT32)0x08)
#define DIK_Q ((INT32)0x1C)
#define DIK_COMMA ((INT32)0x0)
#define DIK_N ((INT32)0x0)
#define DIK_V ((INT32)0x0)
#define DIK_X ((INT32)0x0)
#define DIK_PERIOD ((INT32)0x0)
#define DIK_M ((INT32)0x0)
#define DIK_B ((INT32)0x0)
#define DIK_C ((INT32)0x0)
#define DIK_Z ((INT32)0x0)
#define DIK_SEMICOLON ((INT32)0x0)
#define DIK_K ((INT32)0x0)
#define DIK_H ((INT32)0x0)
#define DIK_F ((INT32)0x0)
#define DIK_P ((INT32)0x0)
#define DIK_I ((INT32)0x0)
#define DIK_Y ((INT32)0x0)
#define DIK_R ((INT32)0x0)
#define DIK_GRAVE ((INT32)0x0)
#define DIK_TAB ((INT32)0x0)
#define DIK_RETURN ((INT32)0x0)
#define DIK_O ((INT32)0x0)
#define DIK_U ((INT32)0x0)
#define DIK_T ((INT32)0x0)
#define DIK_E ((INT32)0x0)
#define DIK_L ((INT32)0x0)
#define DIK_J ((INT32)0x0)
#define DIK_G ((INT32)0x0)
#define DIK_D ((INT32)0x0)
#define DIK_LSHIFT ((INT32)0x0)
#define DIK_F2 ((INT32)0x0)
#define DI__WTFX ((INT32)0xFA)
#define DI__WTFY ((INT32)0xFB)
#endif
#ifdef __cplusplus
}
#endif
#endif //TYPES_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <fat.h>

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __HIGHSCORE_H
#define __HIGHSCORE_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __DS_LOADGAME_H
#define __DS_LOADGAME_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <fat.h>
#include <stdio.h>

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __MANUAL_H
#define __MANUAL_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __OVERLAY_H
#define __OVERLAY_H

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#include <nds.h>
#include <stdio.h>
#include <fat.h>

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __SAVESTATE_H
#define __SAVESTATE_H

View File

@ -1,7 +1,7 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.

View File

@ -1,13 +1,14 @@
// =====================================================================================
// Copyright (c) 2021 Dave Bernazzani (wavemotion-dave)
// Copyright (c) 2021-2023 Dave Bernazzani (wavemotion-dave)
//
// Copying and distribution of this emulator, it's source code and associated
// Copying and distribution of this emulator, its source code and associated
// readme files, with or without modification, are permitted in any medium without
// royalty provided the this copyright notice is used and wavemotion-dave (NINTV-DS)
// and Kyle Davis (BLISS) are thanked profusely.
//
// The NINTV-DS emulator is offered as-is, without any warranty.
// =====================================================================================
#ifndef __VIDEOAUD_H
#define __VIDEOAUD_H