Files
mazegame/engine/doc/html/files/bios_hook-h.html
T

45 lines
6.3 KiB
HTML

<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>bios_hook.h</title><link rel="stylesheet" type="text/css" href="../styles/main.css" /><script type="text/javascript" src="../styles/main.js"></script><script type="text/javascript">NDLoader.LoadJS("Content", "../styles/");</script></head>
<!-- Generated by Natural Docs, version 2.2 -->
<!-- saved from url=(0016)http://localhost -->
<body onload="NDLoader.OnLoad('Content');" class="NDPage NDContentPage">
<a name="Functions"></a><a name="Topic1424"></a><div class="CTopic TGroup LC first">
<div class="CTitle">Functions</div>
</div>
<a name="BIOS_SetHookCallback"></a><a name="Topic1517"></a><div class="CTopic TFunction LC">
<div class="CTitle">BIOS_SetHookCallback</div>
<div id="NDPrototype1517" class="NDPrototype WideForm"><div class="PSection PParameterSection CStyle"><table><tr><td class="PBeforeParameters"><span class="SHKeyword">void</span> BIOS_SetHookCallback(</td><td class="PParametersParentCell"><table class="PParameters"><tr><td class="PType first">u16&nbsp;</td><td class="PName last">hook,</td></tr><tr><td class="PType first">callback&nbsp;</td><td class="PName last">cb</td></tr></table></td><td class="PAfterParameters">)</td></tr></table></div></div>
<div class="CBody"><p>Set a safe hook interslot jump to a given function</p><div class="CHeading">Parameters</div><table class="CDefinitionList"><tr><td class="CDLEntry">hook<div class="CDLParameterType">u16</div></td><td class="CDLDefinition"><p>Hook address</p></td></tr><tr><td class="CDLEntry">cb<div class="CDLParameterType">callback</div></td><td class="CDLDefinition"><p>Function to be called</p></td></tr></table></div>
</div>
<a name="BIOS_SetHookDirectCallback"></a><a name="Topic1541"></a><div class="CTopic TFunction LC">
<div class="CTitle">BIOS_SetHookDirectCallback</div>
<div id="NDPrototype1541" class="NDPrototype WideForm"><div class="PSection PParameterSection CStyle"><table><tr><td class="PBeforeParameters"><span class="SHKeyword">inline</span> <span class="SHKeyword">void</span> BIOS_SetHookDirectCallback(</td><td class="PParametersParentCell"><table class="PParameters"><tr><td class="PType first">u16&nbsp;</td><td class="PName last">hook,</td></tr><tr><td class="PType first">callback&nbsp;</td><td class="PName last">cb</td></tr></table></td><td class="PAfterParameters">)</td></tr></table></div></div>
<div class="CBody"><p>Set a Hook to jump directly to a given function</p><div class="CHeading">Parameters</div><table class="CDefinitionList"><tr><td class="CDLEntry">hook<div class="CDLParameterType">u16</div></td><td class="CDLDefinition"><p>Hook address</p></td></tr><tr><td class="CDLEntry">cb<div class="CDLParameterType">callback</div></td><td class="CDLDefinition"><p>Function to be called</p></td></tr></table></div>
</div>
<a name="BIOS_SetHookInterSlotCallback"></a><a name="Topic1542"></a><div class="CTopic TFunction LC">
<div class="CTitle">BIOS_SetHookInterSlotCallback</div>
<div id="NDPrototype1542" class="NDPrototype WideForm"><div class="PSection PParameterSection CStyle"><table><tr><td class="PBeforeParameters"><span class="SHKeyword">inline</span> <span class="SHKeyword">void</span> BIOS_SetHookInterSlotCallback(</td><td class="PParametersParentCell"><table class="PParameters"><tr><td class="PType first">u16&nbsp;</td><td class="PName last">hook,</td></tr><tr><td class="PType first">u32&nbsp;</td><td class="PName last">slot,</td></tr><tr><td class="PType first">callback&nbsp;</td><td class="PName last">cb</td></tr></table></td><td class="PAfterParameters">)</td></tr></table></div></div>
<div class="CBody"><p>Set a Hook to jump to a given function in a given slot ID</p><div class="CHeading">Parameters</div><table class="CDefinitionList"><tr><td class="CDLEntry">hook<div class="CDLParameterType">u16</div></td><td class="CDLDefinition"><p>Hook address</p></td></tr><tr><td class="CDLEntry">slot<div class="CDLParameterType">u32</div></td><td class="CDLDefinition"><p>Slot ID</p></td></tr><tr><td class="CDLEntry">cb<div class="CDLParameterType">callback</div></td><td class="CDLDefinition"><p>Function to be called</p></td></tr></table></div>
</div>
<a name="BIOS_ClearHook"></a><a name="Topic1543"></a><div class="CTopic TFunction LC">
<div class="CTitle">BIOS_ClearHook</div>
<div id="NDPrototype1543" class="NDPrototype WideForm"><div class="PSection PParameterSection CStyle"><table><tr><td class="PBeforeParameters"><span class="SHKeyword">inline</span> <span class="SHKeyword">void</span> BIOS_ClearHook(</td><td class="PParametersParentCell"><table class="PParameters"><tr><td class="PType first">u16&nbsp;</td><td class="PName last">hook</td></tr></table></td><td class="PAfterParameters">)</td></tr></table></div></div>
<div class="CBody"><p>Clear a Hook (set RET asm code)</p><div class="CHeading">Parameters</div><table class="CDefinitionList"><tr><td class="CDLEntry">hook<div class="CDLParameterType">u16</div></td><td class="CDLDefinition"><p>Hook address</p></td></tr></table></div>
</div>
<a name="BIOS_BackupHook"></a><a name="Topic1544"></a><div class="CTopic TFunction LC last">
<div class="CTitle">BIOS_BackupHook</div>
<div id="NDPrototype1544" class="NDPrototype WideForm"><div class="PSection PParameterSection CStyle"><table><tr><td class="PBeforeParameters"><span class="SHKeyword">inline</span> <span class="SHKeyword">void</span> BIOS_BackupHook(</td><td class="PParametersParentCell"><table class="PParameters"><tr><td class="PType first">u16&nbsp;</td><td class="PName last">hook,</td></tr><tr><td class="PType first"><span class="SHKeyword">void</span>*&nbsp;</td><td class="PName last">buffer</td></tr></table></td><td class="PAfterParameters">)</td></tr></table></div></div>
<div class="CBody"><p>Backup hook content into a buffer (must be 5 bytes length). The buffer content can been call at any time using Call() function</p><div class="CHeading">Parameters</div><table class="CDefinitionList"><tr><td class="CDLEntry">hook<div class="CDLParameterType">u16</div></td><td class="CDLDefinition"><p>Hook address</p></td></tr><tr><td class="CDLEntry">buffer<div class="CDLParameterType"><span class="SHKeyword">void</span>*</div></td><td class="CDLDefinition"><p>Destination buffer in RAM</p></td></tr></table></div>
</div>
</body></html>