Skip to content

Commit c9dad4d

Browse files
Add hookflags, AppSetup
Co-Authored-By: RoccoLox Programs <[email protected]>
1 parent 068e4db commit c9dad4d

File tree

4 files changed

+125
-0
lines changed

4 files changed

+125
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: hookflags2
3+
geekdocHidden: true
4+
params:
5+
address: $D000B4 (ti.flags + $34)
6+
name: hookflags2
7+
---
8+
9+
### Address: $D000B4 (ti.flags + $34)
10+
11+
### Size: 1 byte
12+
13+
### Bit 0 - getCSCHookActive:
14+
Set if a [GetCSC hook](../../../../other/hooks/GetCSC) is active, reset otherwise.
15+
16+
### Bit 1 - libraryHookActive:
17+
Set if a [library hook](../../../../other/hooks/Library) is active, reset otherwise.
18+
19+
### Bit 2 - noHookActive:
20+
Appears to be unused.
21+
22+
### Bit 4 - homescreenHookActive:
23+
Set if a [homescreen hook](../../../../other/hooks/Homescreen) is active, reset otherwise.
24+
25+
### Bit 5 - rawKeyHookActive:
26+
Set if a [raw key hook](../../../../other/hooks/RawKey) is active, reset otherwise.
27+
28+
### Bit 6 - catalog2HookActive:
29+
Set if a [catalog 2 hook](../../../../other/hooks/Catalog2) is active, reset otherwise.
30+
31+
### Bit 7 - cursorHookActive:
32+
Set if a [cursor hook](../../../../other/hooks/Cursor) is active, reset otherwise.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: hookflags3
3+
geekdocHidden: true
4+
params:
5+
address: $D000B5 (ti.flags + $35)
6+
name: hookflags3
7+
---
8+
9+
### Address: $D000B5 (ti.flags + $35)
10+
11+
### Size: 1 byte
12+
13+
### Bit 0 - tokenHookActive:
14+
Set if a [token hook](../../../../other/hooks/Token) is active, reset otherwise.
15+
16+
### Bit 1 - localizeHookActive:
17+
Set if a [localize hook](../../../../other/hooks/Localize) is active, reset otherwise.
18+
19+
### Bit 2 - windowHookActive:
20+
Set if a [window hook](../../../../other/hooks/Window) is active, reset otherwise.
21+
22+
### Bit 3 - graphHookActive:
23+
Set if a [graph hook](../../../../other/hooks/Graph) is active, reset otherwise.
24+
25+
### Bit 4 - yEquHookActive:
26+
Set if a [Y= hook](../../../../other/hooks/Yequ) is active, reset otherwise.
27+
28+
### Bit 5 - fontHookActive:
29+
Set if a [font hook](../../../../other/hooks/Font) is active, reset otherwise.
30+
31+
### Bit 6 - regraphHookActive:
32+
Set if a [regraph hook](../../../../other/hooks/Regraph) is active, reset otherwise.
33+
34+
### Bit 7 - drawingHookActive:
35+
Set if a [drawing hook](../../../../other/hooks/Drawing) is active, reset otherwise.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: hookflags4
3+
geekdocHidden: true
4+
params:
5+
address: $D000B6 (ti.flags + $36)
6+
name: hookflags4
7+
---
8+
9+
### Address: $D000B6 (ti.flags + $36)
10+
11+
### Size: 1 byte
12+
13+
### Bit 0 - traceHookActive:
14+
Set if a [trace hook](../../../../other/hooks/Trace) is active, reset otherwise.
15+
16+
### Bit 1 - parserHookActive:
17+
Set if a [parser hook](../../../../other/hooks/Parser) is active, reset otherwise.
18+
19+
### Bit 2 - appChangeHookActive:
20+
Set if an [app change hook](../../../../other/hooks/AppChange) is active, reset otherwise.
21+
22+
### Bit 3 - catalog1HookActive:
23+
Set if a [catalog 1 hook](../../../../other/hooks/Catalog1) is active, reset otherwise.
24+
25+
### Bit 4 - helpHookActive:
26+
Set if a [help hook](../../../../other/hooks/Help) is active, reset otherwise.
27+
28+
### Bit 5 - cxRedispHookActive:
29+
Set if a [cxRedisp hook](../../../../other/hooks/cxRedisp) is active, reset otherwise.
30+
31+
### Bit 6 - menuHookActive:
32+
Set if a [menu hook](../../../../other/hooks/Menu) is active, reset otherwise.
33+
34+
### Bit 7 - silentLinkHookActive:
35+
Set if a [silent link hook](../../../../other/hooks/SilentLink) is active, reset otherwise.

content/syscalls/all/AppSetup.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: AppSetup
3+
geekdocHidden: true
4+
params:
5+
address: $021148
6+
category: Apps
7+
name: AppSetup
8+
---
9+
10+
Cleans up flags and hooks before running a flash application.
11+
12+
### Address: $021148
13+
14+
### Inputs:
15+
* Set bit in [`hookflags2Override`](../../../memory/all/flags/hookflags2Override), [`hookflags3Override`](../../../memory/all/flags/hookflags3Override), or [`hookflags4Override`](../../../memory/all/flags/hookflags4Override) corresponding to a [`hookflags2`](../../../memory/all/flags/hookflags2), [`hookflags3`](../../../memory/all/flags/hookflags3), or [`hookflags4`](../../../memory/all/flags/hookflags4) hook to uninstall that hook.
16+
17+
### Outputs:
18+
* Reset [`bufferOnly, (flags + plotFlag3)`](../../../memory/all/flags/plotFlag3#bit-0---bufferOnly).
19+
* Reset [`appRunning, (flags + APIFlg)`](../../../memory/all/flags/APIFlg#bit-4---apprunning).
20+
* Zeroes out [`textFlags`](../../../memory/all/flags/textFlags), [`apiFlg2`](../../../memory/all/flags/apiFlg2), [`apiFlg3`](../../../memory/all/flags/apiFlg3), [`apiFlg4`](../../../memory/all/flags/apiFlg4), [`hookflags2Override`](../../../memory/all/flags/hookflags2Override), [`hookflags3Override`](../../../memory/all/flags/hookflags3Override), and [`hookflags4Override`](../../../memory/all/flags/hookflags4Override).
21+
22+
### Destroys:
23+
* `af`, `hl`

0 commit comments

Comments
 (0)