Skip to content

Instantly share code, notes, and snippets.

View exjam's full-sized avatar
🐢
is this facebook now

James exjam

🐢
is this facebook now
  • London, United Kingdom
View GitHub Profile
#include <cassert>
#include <cctype>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <functional>
#include <locale>
#include <map>
#include "bigendianview.h"
#include "codetests.h"
# r3 = ThreadState *state
# r4 = test func ptr
#
# 0x00(r1) = lr
# 0x04(r1) = cr
# 0x08(r1) = xer
# 0x10...0x58(r1) = r13...r31
.global runCodeTest
runCodeTest:
stwu r1, -0x80(r1)
#include <cassert>
#include <fstream>
#include <cstdint>
#include <string>
#include <vector>
#include <iostream>
#include "r600_opcodes.h"
#include "bigendianview.h"
namespace gsh
#ifndef CF_INST
#define CF_INST(name, value)
#endif
#ifndef EXP_INST
#define EXP_INST(name, value)
#endif
#ifndef ALU_INST
#define ALU_INST(name, value)
[debug:0] Succesfully loaded D:\Programming\Projects\wiiu\games\WUP-P-AFDE
[trace:105] Core 1 enter thread 5
[trace:105] 0xFBADCDE0 InterruptThreadEntry(0x1, 0x0)
[trace:102] Core 1 enter thread 2
[trace:102] 0x021EF064 OSGetCurrentThread()
[trace:102] 0x021EF06C OSIsDebuggerInitialized()
[trace:102] 0x020150F4 OSGetSystemInfo()
[trace:102] 0x02015110 OSGetSystemInfo()
[trace:206] Core 2 enter thread 6
[trace:102] 0x0201514C OSGetSystemInfo()
[debug:0] Succesfully loaded D:\Programming\Projects\wiiu\games\amiibo-settings
[trace:206] Core 2 enter thread 6
[trace:206] 0xFBADCDE0 InterruptThreadEntry(0x2, 0x0)
[trace:206] Core 2 wait for thread
[trace:105] Core 1 enter thread 5
[trace:4] Core 0 enter thread 4
[trace:105] 0xFBADCDE0 InterruptThreadEntry(0x1, 0x0)
[trace:4] 0xFBADCDE0 InterruptThreadEntry(0x0, 0x0)
[trace:102] Core 1 enter thread 2
[trace:4] Core 0 wait for thread
[debug:0] Succesfully loaded D:\Programming\Projects\wiiu\games\amiibo-settings
[trace:4] Core 0 enter thread 4
[trace:206] Core 2 enter thread 6
[trace:105] Core 1 enter thread 5
[trace:4] 0xFBADCDE0 InterruptThreadEntry(0x0, 0x0)
[trace:206] 0xFBADCDE0 InterruptThreadEntry(0x2, 0x0)
[trace:105] 0xFBADCDE0 InterruptThreadEntry(0x1, 0x0)
[trace:4] Core 0 wait for thread
[trace:206] Core 2 wait for thread
[trace:102] Core 1 enter thread 2
00 ALU: ADDR(32) CNT(4)
00 z: MOV R0.z, 0.0f.x
x: FLT_TO_INT R1.x, R0.x
01 w: MOV R1.w, 0.0f.x
y: FLT_TO_INT R1.y, R0.y
01 TEX: ADDR(192) CNT(2)
02 LD R0.x___, R1.xy0w, t2, s0
03 LD R5.xyzz, R1.xy0w, t1, s0
[debug:0] Succesfully loaded D:\Programming\Projects\wiiu\games\WUP-P-AMKE
[trace:206] Core 2 enter thread 6
[trace:206] 0xFBADCDE0 InterruptThreadEntry(0x2, 0x0)
[trace:206] Core 2 wait for thread
[trace:105] Core 1 enter thread 5
[trace:105] 0xFBADCDE0 InterruptThreadEntry(0x1, 0x0)
[trace:102] Core 1 enter thread 2
[trace:102] 0x025B8218 OSGetCurrentThread()
[trace:102] 0x025B8220 OSIsDebuggerInitialized()
[trace:4] Core 0 enter thread 4
[debug:0] Succesfully loaded D:\Programming\Projects\wiiu\games\WUP-P-AFDE
[trace:4] Core 0 enter thread 4
[trace:4] 0xFBADCDE0 InterruptThreadEntry(0x0, 0x0)
[trace:4] Core 0 wait for thread
[trace:206] Core 2 enter thread 6
[trace:105] Core 1 enter thread 5
[trace:206] 0xFBADCDE0 InterruptThreadEntry(0x2, 0x0)
[trace:105] 0xFBADCDE0 InterruptThreadEntry(0x1, 0x0)
[trace:206] Core 2 wait for thread
[trace:102] Core 1 enter thread 2