DSTT: Add DMA support and reduce code size (#162) Fixes #111

This commit is contained in:
lifehackerhansol
2026-05-10 00:37:38 -07:00
committed by GitHub
parent ae034ae1f6
commit e227cff9ee
12 changed files with 452 additions and 140 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "sections.h"
#include "thumbInstructions.h"
#include "patches/PatchCode.h"
DEFINE_SECTION_SYMBOLS(dstt_sdstoptransmission);
extern "C" void dstt_sdStopTransmission();
class DsttSdStopTransmissionPatchCode : public PatchCode
{
public:
explicit DsttSdStopTransmissionPatchCode(PatchHeap& patchHeap)
: PatchCode(SECTION_START(dstt_sdstoptransmission), SECTION_SIZE(dstt_sdstoptransmission), patchHeap) { }
const void* GetStopTransmissionFunction() const
{
return GetAddressAtTarget((void*)dstt_sdStopTransmission);
}
};