Skip to content

Instantly share code, notes, and snippets.

// Namespace.MacroJit
// Token: 0x06000002 RID: 2 RVA: 0x00002058 File Offset: 0x00000258
public static void Macro(MacroJitContext A_0, GpuState A_1, int A_2)
{
int num = 0 + 68;
int num2 = num & 4095;
int num3 = (int)((uint)num >> 12 & 63U);
MacroJitContext.Send((int)((uint)num >> 12 & 63U), A_1, num2);
num2 += num3;
int num4 = 0 + 7424;
// Token: 0x06000002 RID: 2 RVA: 0x00002058 File Offset: 0x00000258
.method public static
void Macro (
class [Ryujinx.Graphics.Gpu]Ryujinx.Graphics.Gpu.Engine.MME.MacroJitContext '',
class [Ryujinx.Graphics.Gpu]Ryujinx.Graphics.Gpu.State.GpuState '',
int32 ''
) cil managed
{
// Header Size: 12 bytes
// Code Size: 721 (0x2D1) bytes
00007FFBEA25B7A6 | B9 44000000 | mov ecx,44 | 44:'D'
00007FFBEA25B7AB | 33D2 | xor edx,edx |
00007FFBEA25B7AD | 33C0 | xor eax,eax |
00007FFBEA25B7AF | 4C:8BC6 | mov r8,rsi |
00007FFBEA25B7B2 | 4C:8D4C24 28 | lea r9,qword ptr ss:[rsp+28] |
00007FFBEA25B7B7 | 41:8909 | mov dword ptr ds:[r9],ecx |
00007FFBEA25B7BA | 41:8951 04 | mov dword ptr ds:[r9+4],edx |
00007FFBEA25B7BE | 41:8941 08 | mov dword ptr ds:[r9+8],eax |
00007FFBEA25B7C2 | 41:8941 0C | mov dword ptr ds:[r9+C],eax |
00007FFBEA25B7C6 | 49:8BC8 | mov rcx,r8 |
@gdkchan
gdkchan / UnStore.cs
Created July 20, 2017 19:52
Switch IStorage extractor in C#
using System;
using System.IO;
using System.Text;
namespace UnStore
{
class Program
{
static void Main(string[] args)
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace KHPacker
{
class Program
{
@gdkchan
gdkchan / UnBili
Last active April 28, 2017 03:30
/*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdictions that recognize copyright laws, the author or authors
* of this software dedicate any and all copyright interest in the