Merge pull request #1608 from Margen67/https
Update http documentation links to https and fix (some) dead ones
This commit is contained in:
commit
b13fdf635e
|
@ -256,7 +256,7 @@ namespace CxbxDebugger
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// http://msdn.microsoft.com/en-us/library/windows/desktop/aa363082(v=vs.85).aspx
|
||||
/// https://msdn.microsoft.com/en-us/library/windows/desktop/aa363082(v=vs.85).aspx
|
||||
/// </summary>
|
||||
public enum ExceptionCode : uint
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ using System;
|
|||
namespace VsChromium.Core.Win32.Processes {
|
||||
// The target architecture of a given executable image. The various values correspond
|
||||
// to the magic numbers defined by the PE Executable Image File Format.
|
||||
// http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx
|
||||
// https://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx
|
||||
public enum MachineType : ushort {
|
||||
Unknown = 0x0,
|
||||
X64 = 0x8664,
|
||||
|
|
|
@ -58,7 +58,7 @@ const EEPROMInfo* EmuFindEEPROMInfo(xboxkrnl::XC_VALUE_INDEX index)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// From http://xboxdevwiki.net/EEPROM
|
||||
// From https://xboxdevwiki.net/EEPROM
|
||||
static void EepromCRC(unsigned char *crc, unsigned char *data, long dataLen) {
|
||||
unsigned char* CRC_Data = (unsigned char *)malloc(dataLen+4);
|
||||
int pos=0;
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
#include "common\Settings.hpp"
|
||||
#include "EmuShared.h"
|
||||
|
||||
// For thread_local, see : http://en.cppreference.com/w/cpp/language/storage_duration
|
||||
// TODO : Use Boost.Format http://www.boost.org/doc/libs/1_53_0/libs/format/index.html
|
||||
// For thread_local, see : https://en.cppreference.com/w/cpp/language/storage_duration
|
||||
// TODO : Use Boost.Format https://www.boost.org/doc/libs/1_53_0/libs/format/index.html
|
||||
thread_local std::string _logThreadPrefix;
|
||||
|
||||
std::atomic_bool g_EnabledModules[to_underlying(CXBXR_MODULE::MAX)] = { false };
|
||||
|
|
|
@ -127,7 +127,7 @@ void log_generate_active_filter_output(const CXBXR_MODULE cxbxr_module);
|
|||
// __FILENAME__
|
||||
//
|
||||
|
||||
// From http://stackoverflow.com/questions/31050113/how-to-extract-the-source-filename-without-path-and-suffix-at-compile-time
|
||||
// From https://stackoverflow.com/questions/31050113/how-to-extract-the-source-filename-without-path-and-suffix-at-compile-time
|
||||
constexpr const char* str_end(const char *str) {
|
||||
return *str ? str_end(str + 1) : str;
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ extern LOG_SANITIZE_HEADER(C, T) \
|
|||
|
||||
|
||||
// Hex output (type safe)
|
||||
// http://stackoverflow.com/questions/673240/how-do-i-print-an-unsigned-char-as-hex-in-c-using-ostream
|
||||
// https://stackoverflow.com/questions/673240/how-do-i-print-an-unsigned-char-as-hex-in-c-using-ostream
|
||||
LOG_SANITIZE(hex1, uint8_t);
|
||||
LOG_SANITIZE(hex2, uint16_t);
|
||||
LOG_SANITIZE(hex4, uint32_t);
|
||||
|
@ -247,8 +247,8 @@ constexpr const char* remove_emupatch_prefix(const char* str) {
|
|||
#define LOG_PREFIX __FILENAME__
|
||||
#endif // LOG_PREFIX
|
||||
|
||||
// For thread_local, see : http://en.cppreference.com/w/cpp/language/storage_duration
|
||||
// TODO : Use Boost.Format http://www.boost.org/doc/libs/1_53_0/libs/format/index.html
|
||||
// For thread_local, see : https://en.cppreference.com/w/cpp/language/storage_duration
|
||||
// TODO : Use Boost.Format https://www.boost.org/doc/libs/1_53_0/libs/format/index.html
|
||||
extern thread_local std::string _logThreadPrefix;
|
||||
|
||||
// Checks if this log should be printed or not
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
http://www.gnu.org/licenses/gpl.txt
|
||||
https://www.gnu.org/licenses/gpl.txt
|
||||
*/
|
||||
|
||||
#define XBOX_ADPCM_SRCSIZE 36
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* DES, on which TDES is based, was originally designed by Horst Feistel
|
||||
* at IBM in 1974, and was adopted as a standard by NIST (formerly NBS).
|
||||
*
|
||||
* http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
|
||||
* https://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
|
||||
*/
|
||||
|
||||
// Changed from ReactOS: we never swap the subkeys in order to generate a decryption key schedule. Instead, we opt to simply read the subkeys
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "gloffscreen.h"
|
||||
#include "glextensions.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef GLEXTEENSIONS_H_
|
||||
#define GLEXTEENSIONS_H_
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// //////////////////////////////////////////////////////////
|
||||
// xxhash32.h
|
||||
// Copyright (c) 2016 Stephan Brumme. All rights reserved.
|
||||
// see http://create.stephan-brumme.com/disclaimer.html
|
||||
// see https://create.stephan-brumme.com/disclaimer.html
|
||||
//
|
||||
#pragma once
|
||||
#include <stdint.h> // for uint32_t and uint64_t
|
||||
#include "crc32c.h"
|
||||
/// XXHash (32 bit), based on Yann Collet's descriptions, see http://cyan4973.github.io/xxHash/
|
||||
/// XXHash (32 bit), based on Yann Collet's descriptions, see https://cyan4973.github.io/xxHash/
|
||||
/** How to use:
|
||||
uint32_t myseed = 0;
|
||||
XXHash32 myhash(myseed);
|
||||
|
|
|
@ -145,7 +145,7 @@ std::string XbePrinter::AllowedMediaToString()
|
|||
std::string XbePrinter::GameRatingToString()
|
||||
{
|
||||
std::string text;
|
||||
// Info from: http://xboxdevwiki.net/EEPROM
|
||||
// Info from: https://xboxdevwiki.net/EEPROM
|
||||
switch(Xbe_certificate->dwGameRatings) {
|
||||
case 0x0:
|
||||
text.append("(RP) Rating Pending");
|
||||
|
|
|
@ -220,9 +220,9 @@ DWORD* g_XboxD3DDevice;
|
|||
const char *CxbxGetErrorDescription(HRESULT hResult)
|
||||
{
|
||||
// TODO : For D3D9, Use DXGetErrorDescription9(hResult) (requires another DLL though)
|
||||
// See : http://www.fairyengine.com/articles/dxmultiviews.htm
|
||||
// and : http://www.gamedev.net/community/forums/showfaq.asp?forum_id=10
|
||||
// and : http://www.gamedev.net/community/forums/topic.asp?topic_id=16157
|
||||
// See : https://www.fairyengine.com/articles/dxmultiviews.htm
|
||||
// and : https://web.archive.org/web/20101231193248/https://www.gamedev.net/community/forums/showfaq.asp?forum_id=10
|
||||
// and : https://www.gamedev.net/community/forums/topic.asp?topic_id=16157
|
||||
// But https://blogs.msdn.microsoft.com/chuckw/2012/04/24/wheres-dxerr-lib/
|
||||
// suggests to use FormatMessage with FORMAT_MESSAGE_FROM_SYSTEM for DirectX errors
|
||||
switch (hResult)
|
||||
|
@ -520,7 +520,7 @@ VOID XTL::CxbxInitWindow(bool bFullInit)
|
|||
void DrawUEM(HWND hWnd)
|
||||
{
|
||||
// Draw the universal error message (UEM)
|
||||
// See http://xboxdevwiki.net/Fatal_Error
|
||||
// See https://xboxdevwiki.net/Fatal_Error
|
||||
// Only call this from WM_PAINT message!
|
||||
|
||||
PAINTSTRUCT ps;
|
||||
|
|
|
@ -1577,7 +1577,7 @@ uint32 Swizzle(uint32 value, uint32 max, uint32 shift)
|
|||
else
|
||||
result = value % max;
|
||||
|
||||
// The following is based on http://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN :
|
||||
// The following is based on https://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN :
|
||||
// --------------------------------11111111111111111111111111111111
|
||||
result = (result | (result << 8)) & 0x00FF00FF; // 0000000000000000111111111111111100000000000000001111111111111111
|
||||
result = (result | (result << 4)) & 0x0F0F0F0F; // 0000111100001111000011110000111100001111000011110000111100001111
|
||||
|
|
|
@ -142,7 +142,7 @@ typedef enum _X_D3DFORMAT
|
|||
*/
|
||||
|
||||
// Xbox D3DFORMAT types :
|
||||
// See http://wiki.beyondunreal.com/Legacy:Texture_Format
|
||||
// See https://wiki.beyondunreal.com/Legacy:Texture_Format
|
||||
|
||||
// Swizzled Formats
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
// CONTAINING_RECORD macro
|
||||
// Gets the value of structure member (field - num1),given the type(MYSTRUCT, in this code) and the List_Entry head(temp, in this code)
|
||||
// See http://stackoverflow.com/questions/8240273/a-portable-way-to-calculate-pointer-to-the-whole-structure-using-pointer-to-a-fi
|
||||
// See https://stackoverflow.com/questions/8240273/a-portable-way-to-calculate-pointer-to-the-whole-structure-using-pointer-to-a-fi
|
||||
//#define CONTAINING_RECORD(ptr, type, field) \
|
||||
// (((type) *)((char *)(ptr) - offsetof((type), member)))
|
||||
|
||||
|
|
|
@ -809,7 +809,7 @@ typedef struct _KUSER_SHARED_DATA
|
|||
}
|
||||
KUSER_SHARED_DATA, *PKUSER_SHARED_DATA;
|
||||
// This is only the top of the actual definition. For the complete version,
|
||||
// see http://processhacker.sourceforge.net/doc/ntexapi_8h_source.html
|
||||
// see https://processhacker.sourceforge.io/doc/ntexapi_8h_source.html
|
||||
|
||||
// ******************************************************************
|
||||
// * GENERIC_MAPPING
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
namespace LED {
|
||||
|
||||
// See http://xboxdevwiki.net/PIC#The_LED
|
||||
// See https://xboxdevwiki.net/PIC#The_LED
|
||||
namespace Phase0 { enum { Off = 0, Red = 1 << 7, Green = 1 << 3, Orange = Red | Green }; };
|
||||
namespace Phase1 { enum { Off = 0, Red = 1 << 6, Green = 1 << 2, Orange = Red | Green }; };
|
||||
namespace Phase2 { enum { Off = 0, Red = 1 << 5, Green = 1 << 1, Orange = Red | Green }; };
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace xboxkrnl
|
|||
|
||||
void SetLEDSequence(LED::Sequence aLEDSequence)
|
||||
{
|
||||
// See http://xboxdevwiki.net/PIC#The_LED
|
||||
// See https://xboxdevwiki.net/PIC#The_LED
|
||||
DBG_PRINTF("SetLEDSequence : %u\n", (byte)aLEDSequence);
|
||||
|
||||
union {
|
||||
|
@ -71,7 +71,7 @@ void SMCDevice::Init()
|
|||
{
|
||||
m_PICVersionStringIndex = 0;
|
||||
buffer[SMC_COMMAND_LED_SEQUENCE] = LED::GREEN;
|
||||
buffer[SMC_COMMAND_SCRATCH] = 0; // http://xboxdevwiki.net/PIC#Scratch_register_values
|
||||
buffer[SMC_COMMAND_SCRATCH] = 0; // https://xboxdevwiki.net/PIC#Scratch_register_values
|
||||
}
|
||||
|
||||
void SMCDevice::Reset()
|
||||
|
@ -93,7 +93,7 @@ uint8_t SMCDevice::ReadByte(uint8_t command)
|
|||
{
|
||||
switch (command) {
|
||||
case SMC_COMMAND_VERSION: // 0x01 PIC version string
|
||||
// See http://xboxdevwiki.net/PIC#PIC_version_string
|
||||
// See https://xboxdevwiki.net/PIC#PIC_version_string
|
||||
switch (m_revision) {
|
||||
case SCMRevision::P01: buffer[1] = "P01"[m_PICVersionStringIndex]; break;
|
||||
case SCMRevision::P2L: buffer[1] = "P05"[m_PICVersionStringIndex]; break; // ??
|
||||
|
@ -121,7 +121,7 @@ uint8_t SMCDevice::ReadByte(uint8_t command)
|
|||
case SMC_COMMAND_CHALLENGE_1E: // random number for boot challenge
|
||||
case SMC_COMMAND_CHALLENGE_1F: // random number for boot challenge
|
||||
if (m_revision == SCMRevision::D01)
|
||||
// See http://xboxdevwiki.net/PIC#PIC_Challenge_.28regs_0x1C.7E0x21.29
|
||||
// See https://xboxdevwiki.net/PIC#PIC_Challenge_.28regs_0x1C.7E0x21.29
|
||||
return 0;
|
||||
|
||||
break;
|
||||
|
@ -154,7 +154,7 @@ void SMCDevice::WriteByte(uint8_t command, uint8_t value)
|
|||
m_PICVersionStringIndex = 0;
|
||||
return;
|
||||
case SMC_COMMAND_RESET: //0x02 reset and power off control
|
||||
// See http://xboxdevwiki.net/PIC#Reset_and_Power_Off
|
||||
// See https://xboxdevwiki.net/PIC#Reset_and_Power_Off
|
||||
switch (value) {
|
||||
case SMC_RESET_ASSERT_RESET: return; // TODO
|
||||
case SMC_RESET_ASSERT_POWERCYCLE: return; // TODO
|
||||
|
@ -185,7 +185,7 @@ void SMCDevice::WriteByte(uint8_t command, uint8_t value)
|
|||
//case 0x19: // reset on eject(0 = enable; 1 = disable)
|
||||
//case 0x1A: // interrupt enable(write 0x01 to enable; can't disable once enabled)
|
||||
case SMC_COMMAND_SCRATCH: //0x1B scratch register for the original kernel
|
||||
// See http://xboxdevwiki.net/PIC#Scratch_register_values
|
||||
// See https://xboxdevwiki.net/PIC#Scratch_register_values
|
||||
switch (value) {
|
||||
case SMC_SCRATCH_TRAY_EJECT_PENDING: return; // TODO
|
||||
case SMC_SCRATCH_DISPLAY_FATAL_ERROR:
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
// PIC16LC63A-04/SO
|
||||
// (M) 0123857
|
||||
//
|
||||
// Producer : http://www.microchip.com/wwwproducts/en/en010145
|
||||
// Datasheet : http://ww1.microchip.com/downloads/en/DeviceDoc/30605D.pdf
|
||||
// Producer : https://www.microchip.com/wwwproducts/en/en010145
|
||||
// Datasheet : https://ww1.microchip.com/downloads/en/DeviceDoc/30605D.pdf
|
||||
|
||||
// NOTE : Instead of calling this device by it's real name ("PIC16LC63A-04/SO"),
|
||||
// we've decided to call this device "SMC", since we don't implement
|
||||
|
@ -42,7 +42,7 @@
|
|||
|
||||
// Reading:
|
||||
|
||||
// From https://web.archive.org/web/20100617022549/http://www.xbox-linux.org/wiki/PIC :
|
||||
// From https://web.archive.org/web/20100617022549/https://www.xbox-linux.org/wiki/PIC :
|
||||
// Command Description
|
||||
#define SMC_COMMAND_VERSION 0x01 // PIC version string
|
||||
//0x03 tray state
|
||||
|
@ -92,7 +92,7 @@
|
|||
#define SMC_SCRATCH_DASHBOARD_BOOT 0x08
|
||||
|
||||
typedef enum {
|
||||
// http://xboxdevwiki.net/System_Management_Controller
|
||||
// https://xboxdevwiki.net/System_Management_Controller
|
||||
P01,
|
||||
P2L,
|
||||
D01, // Seen in a debug kit
|
||||
|
|
|
@ -120,7 +120,7 @@ void InitXboxHardware(HardwareModel hardwareModel)
|
|||
|
||||
g_SMC = new SMCDevice(smc_revision, g_bIsChihiro ? 6 : 1); // 6 = AV_PACK_STANDARD, 1 = AV_PACK_HDTV. Chihiro doesn't support HDTV!
|
||||
// SMC uses different AV_PACK values than the Kernel
|
||||
// See http://xboxdevwiki.net/PIC#The_AV_Pack
|
||||
// See https://xboxdevwiki.net/PIC#The_AV_Pack
|
||||
g_EEPROM = new EEPROMDevice();
|
||||
g_NVNet = new NVNetDevice();
|
||||
g_NV2A = new NV2ADevice();
|
||||
|
@ -169,5 +169,5 @@ void InitXboxHardware(HardwareModel hardwareModel)
|
|||
// Resources : http://pablot.com/misc/fancontroller.cpp
|
||||
// https://github.com/JayFoxRox/Chihiro-Launcher/blob/master/hook.h
|
||||
// https://github.com/docbrown/vxb/wiki/Xbox-Hardware-Information
|
||||
// https://web.archive.org/web/20100617022549/http://www.xbox-linux.org/wiki/PIC
|
||||
// https://web.archive.org/web/20100617022549/https://www.xbox-linux.org/wiki/PIC
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ typedef enum {
|
|||
} HardwareModel;
|
||||
|
||||
typedef enum { // TODO : Move to it's own file
|
||||
// http://xboxdevwiki.net/Hardware_Revisions#Video_encoder
|
||||
// https://xboxdevwiki.net/Hardware_Revisions#Video_encoder
|
||||
Conexant,
|
||||
Focus,
|
||||
XCalibur
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define _XBOXKRNL_DEFEXTRN_
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define _XBOXKRNL_DEFEXTRN_
|
||||
|
|
|
@ -2177,7 +2177,7 @@ void pgraph_handle_method(NV2AState *d,
|
|||
vertex_attribute->gl_normalize = GL_TRUE;
|
||||
vertex_attribute->size = 1;
|
||||
assert(vertex_attribute->count == 4);
|
||||
// http://www.opengl.org/registry/specs/ARB/vertex_array_bgra.txt
|
||||
// https://www.opengl.org/registry/specs/ARB/vertex_array_bgra.txt
|
||||
vertex_attribute->gl_count = GL_BGRA;
|
||||
vertex_attribute->needs_conversion = false;
|
||||
break;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "nv2a_debug.h"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_NV2A_DEBUG_H
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_NV2A_INT_H
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_NV2A_REGS_H
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
//#include "qemu-common.h"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_NV2A_SHADERS_H
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_NV2A_SHADERS_COMMON_H
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -536,7 +536,7 @@ static const char* vsh_header =
|
|||
"\n"
|
||||
|
||||
/* See:
|
||||
* http://msdn.microsoft.com/en-us/library/windows/desktop/bb174703%28v=vs.85%29.aspx
|
||||
* https://msdn.microsoft.com/en-us/library/windows/desktop/bb174703%28v=vs.85%29.aspx
|
||||
* https://www.opengl.org/registry/specs/NV/vertex_program1_1.txt
|
||||
*/
|
||||
"\n"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
* License along with this library; if not, see <https://www.gnu.org/licenses/>
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
|
|
|
@ -606,7 +606,7 @@ bool EmuX86_Operand_Write(LPEXCEPTION_POINTERS e, _DInst& info, int operand, uin
|
|||
|
||||
inline void EmuX86_SetFlags(LPEXCEPTION_POINTERS e, DWORD mask, DWORD value)
|
||||
{
|
||||
// By Ron Jeffery, see http://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge
|
||||
// By Ron Jeffery, see https://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge
|
||||
e->ContextRecord->EFlags ^= ((e->ContextRecord->EFlags ^ value) & mask);
|
||||
}
|
||||
|
||||
|
@ -717,11 +717,11 @@ inline bool EmuX86_HasFlag_DF(LPEXCEPTION_POINTERS e)
|
|||
#define SFCalc(result) (result >> (BitSize-1)) & 1
|
||||
#define ZFCalc(result) (result == 0)
|
||||
#define AFCalc(r,s,d) ((r ^ s ^ d) >> 3) & 1 // Result, Src, Dest
|
||||
#define PFCalc(result) (0x6996 >> ((result ^ (result >> 4)) & 0xF)) & 1 // See http://graphics.stanford.edu/~seander/bithacks.html#ParityParallel
|
||||
#define PFCalc(result) (0x6996 >> ((result ^ (result >> 4)) & 0xF)) & 1 // See https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel
|
||||
#define CFCalc(result) (result >> BitSize) & 1 // TODO : Instead of looking at an actual overflow bit, use high bit of (result XOR dest XOR src)
|
||||
// Flags calculated : Overflow (for addition or subtraction), Sign, Zero, Adjust, Parity and Carry
|
||||
|
||||
// See http://x86.renejeschke.de/ for affected CPU flags per instruction
|
||||
// See https://x86.renejeschke.de/ for affected CPU flags per instruction
|
||||
|
||||
void SignExtend32(uint32_t& dest, size_t from)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue