fork/training-mode-ce

git clone https://git.julia.blue/fork/training-mode-ce

AitchMerge pull request #243 from NickCondron/remove-asmf9241ee

techchase-camera
1.8 KiB106 linesraw
1    # To be inserted at 80394a6c
2    .include "../../Globals.s"
3
4# Remove all previous OSReports
5# load r3, 0x804cf7e8
6# li r4, 0
7# stw r4, 0xC(r3)
8
9    # Play SFX?
10    li r3, 317              # 188 = warning #317 = gasp
11    branchl r12, SFX_PlaySoundAtFullVolume
12
13#############################
14## OS Report Tweet Message ##
15#############################
16
17    load r20, 0x803456a8    # OSReport
18
19    # OSReport Blank Line
20    bl NewLine
21    mflr r3
22    mtctr r20
23    bctrl
24
25    # OSReport # Line
26    bl PoundLine
27    mflr r3
28    mtctr r20
29    bctrl
30
31    # OSReport Error Message
32    bl ResetCombo           # StackDumpMessage1
33    mflr r3
34    mtctr r20
35    bctrl
36
37    # OSReport # Line
38    bl PoundLine
39    mflr r3
40    mtctr r20
41    bctrl
42
43    # OSReport Blank Line
44    bl NewLine
45    mflr r3
46    mtctr r20
47    bctrl
48
49    # OSReport Mod Version
50    rtocbl r12, TM_GetTMVersLong
51    mr r4, r3
52    bl Version
53    mflr r3
54    mtctr r20
55    bctrl
56
57    # OSReport Compile Date
58    rtocbl r12, TM_GetTMCompile
59    mtctr r20
60    bctrl
61
62    # OSReport Blank Line
63    bl NewLine
64    mflr r3
65    mtctr r20
66    bctrl
67
68    b Exit
69
70#########################################################
71
72PoundLine:
73    blrl
74    .long 0x23232323
75    .long 0x23232323
76    .long 0x23232323
77    .long 0x23232323
78    .long 0x23232323
79    .long 0x23232323
80    .long 0x23232323
81    .long 0x23232323
82    .long 0x23232323
83    .long 0x23232323
84    .long 0x23232323
85    .long 0x23232323
86    .long 0x23232323
87    .long 0x230A0000
88
89NewLine:
90    blrl
91    .long 0x0A000000
92
93Version:
94    blrl
95    .string "%s\n"
96    .align 2
97
98ResetCombo:
99    blrl
100    .string "## TWEET A PICTURE OF THIS MESSAGE TO @rwing_aitch ##\n## After submitting, PRESS LRA-START to reboot ##\n"
101    .align 2
102
103#########################################################
104
105Exit:
106    addi r3, r30, 2252