This repository was archived by the owner on Feb 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodetypedocumentation.html
More file actions
683 lines (663 loc) · 64.4 KB
/
codetypedocumentation.html
File metadata and controls
683 lines (663 loc) · 64.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><TITLE>Gecko Codetype Documentation at WiiGeckoCodes.github.io - Wii Code Database</TITLE>
<META NAME="keywords" CONTENT="gecko os, wii, wiird, codes, hacks, wiiware, virtual console, vc, usbgecko">
<META NAME="Generator" CONTENT="NotePad, TextPad">
<META NAME="description" CONTENT= "One place, all the codes. WiiGeckoCodes.github.io Wii Hacker's Database.">
<META NAME="DISTRIBUTION" CONTENT="global">
<META NAME="ROBOTS" CONTENT="all">
<LINK rel="SHORTCUT ICON" HREF="http://wiigeckocodes.github.io/favicons/favicon.ico">
<LINK rel="search" type="application/opensearchdescription+xml" href="http://wiigeckocodes.github.io/includes/opensearch.xml" title="WiiGeckoCodes.github.io">
<LINK rel="styleSheet" href="./includes/css.css" type="text/css"></HEAD>
<BODY onload="ToggleCh()">
<script type="text/javascript" src="./includes/ajax.js"></script><script type="text/javascript" src="./includes/arsenal.js"></script>
<div class=top>
<div><a class=affil6 href="http://www.codemasters-project.net/vb/" title="Codemasters Project">CMP Forums</a> </div>
</div>
<table><tr><td id=navigation><div class=left>
<div class=forum><a href="./index.php?chid=R&r=*">GeckoCodes.org - Updates</a></div><br>
</div><div class=groupl><div class=channel><a href="./index.php?chid=1" onclick="ToggleCh(); this.blur(); return false;" title="Channel Select"><img src="./includes/R.png" alt="Wii [R]"></a></div>
<div class=chnav id=chnav>
<a href="./index.php?chid=R" onclick="changeNav('R', '*'); return false;">[R] Wii</a>
<a href="./index.php?chid=W" onclick="changeNav('W', '*'); return false;">[W] WiiWare</a>
<a href="./index.php?chid=D" onclick="changeNav('D', '*'); return false;">[D] VC Arcade</a>
<a href="./index.php?chid=H" onclick="changeNav('H', '*'); return false;">[H] Wii Channels</a>
<a href="./index.php?chid=G" onclick="changeNav('G', '*'); return false;">[G] GameCube</a>
<a href="./index.php?chid=F" onclick="changeNav('F', '*'); return false;">[F] NES/Famicom</a>
<a href="./index.php?chid=J" onclick="changeNav('J', '*'); return false;">[J] Super NES/Famicom</a>
<a href="./index.php?chid=N" onclick="changeNav('N', '*'); return false;">[N] Nintendo 64</a>
<a href="./index.php?chid=L" onclick="changeNav('L', '*'); return false;">[L] Sega Master System</a>
<a href="./index.php?chid=M" onclick="changeNav('M', '*'); return false;">[M] Genesis/Mega Drive</a>
<a href="./index.php?chid=E" onclick="changeNav('E', '*'); return false;">[E] NeoGeo</a>
<a href="./index.php?chid=C" onclick="changeNav('C', '*'); return false;">[C] Commodore 64</a>
<a href="./index.php?chid=X" onclick="changeNav('X', '*'); return false;">[X] MSX</a>
<a href="./index.php?chid=P" onclick="changeNav('P', '*'); return false;">[P] TurboGraFX-16</a>
<a href="./index.php?chid=Q" onclick="changeNav('Q', '*'); return false;">[Q] TurboGraFX-CD</a>
</div><div class=rnav><div title="Selected">(*) Any/All Regions</div><a href="./index.php?chid=R&r=E" onclick="changeNav('R', 'E'); return false;">(E) NTSC-US Only</a><a href="./index.php?chid=R&r=J" onclick="changeNav('R', 'J'); return false;">(J) NTSC-JP Only</a><a href="./index.php?chid=R&r=P" onclick="changeNav('R', 'P'); return false;">(P) PAL-EU/AU Only</a><a href="./index.php?chid=R&r=z" onclick="changeNav('R', 'z'); return false;">( ) All Less Common</a></div><div class=nav><table><tr><td><a class=R href="http://wiigeckocodes.github.io/games/all.html" title='All'>*</a>
<a class=R href="http://wiigeckocodes.github.io/games/c.html">C</a>
<a class=R href="http://wiigeckocodes.github.io/games/g.html">G</a>
<a class=R href="http://wiigeckocodes.github.io/games/g.html">K</a>
<a class=R href="http://wiigeckocodes.github.io/games/o.html">O</a>
<a class=R href="http://wiigeckocodes.github.io/games/s.html">S</a>
<a class=R href="http://wiigeckocodes.github.io/games/w.html">W</a>
</td><td><a class=R href="http://wiigeckocodes.github.io/games/#.html">#</a>
<a class=R href="http://wiigeckocodes.github.io/games/d.html">D</a>
<a class=R href="http://wiigeckocodes.github.io/games/h.html">H</a>
<a class=R href="http://wiigeckocodes.github.io/games/l.html">L</a>
<a class=R href="http://wiigeckocodes.github.io/games/p.html">P</a>
<a class=R href="http://wiigeckocodes.github.io/games/t.html">T</a>
<a class=R href="http://wiigeckocodes.github.io/games/x.html">X</a>
</td><td><a class=R href="http://wiigeckocodes.github.io/games/a.html">A</a>
<a class=R href="http://wiigeckocodes.github.io/games/e.html">E</a>
<a class=R href="http://wiigeckocodes.github.io/games/i.html">I</a>
<a class=R href="http://wiigeckocodes.github.io/games/m.html">M</a>
<a class=R href="http://wiigeckocodes.github.io/games/q.html">Q</a>
<a class=R href="http://wiigeckocodes.github.io/games/u.html">U</a>
<a class=R href="http://wiigeckocodes.github.io/games/y.html">Y</a>
</td><td><a class=R href="http://wiigeckocodes.github.io/games/b.html">B</a>
<a class=R href="http://wiigeckocodes.github.io/games/f.html">F</a>
<a class=R href="http://wiigeckocodes.github.io/games/j.html">J</a>
<a class=R href="http://wiigeckocodes.github.io/games/n.html">N</a>
<a class=R href="http://wiigeckocodes.github.io/games/r.html">R</a>
<a class=R href="http://wiigeckocodes.github.io/games/v.html">V</a>
<a class=R href="http://wiigeckocodes.github.io/games/z.html">Z</a>
</td></tr></table></div></div><form class=search action='./index.php' method='get' title='Search Title ID or Keywords'><div>
<input type=text name=search class=text>
<input type=submit value=search class=button></div></form><div class=hnav>
<div>Arsenal:</div>
<a href="./index.php?arsenal=1"> Codetype Documentation</a>
<a href="./index.php?arsenal=2"> Button Conditionals</a>
<a href="./index.php?arsenal=3"> Data Conversions</a>
<a href="./index.php?gct="> Online GCT Creator</a>
<a href="./AH.php" title='Official WiiGeckoCodes Homebrew App by BannerBomb'> Accio Hacks</a>
<a href="http://twitter.com/BannerBomb/"> @GeckoCodes</a>
</div><div class=hnav>
<div>Wii Hackers:</div>
<a href="./index.php?chid=R&r=*&hacker=all"> List All Known</a>
<a href="./index.php?chid=R&r=*&hacker=join"> Join the Known</a>
</div>
<div class="affiliate_links"><div class="affilhead">Affiliates:</div>
<div class="row" title="The blog about the future of Wii hacking!">
<a href="http://github.com/BannerBomb" title="BannerBombs Github"> <img alt="Forum" src="./includes/forum.png"> </a>
<a href="http://github.com/BannerBomb/" title="BannerBombs Github"> <img alt="Home" src="./includes/home.png"> </a> BannerBomb</div>
<br></div>
</td><td><div class=list><div class=title>Gecko Codetype Documentation</div><table class=codetypes>
<tr><td colspan=2><div class=ctsmall>This Gecko Codetype Documentation based on work from: BannerBomb.</div></td></tr>
<tr><td><div class="cttitle b4 c4">Direct Ram Writes</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">8 bits Write & Fill<a name='00'></a></div><div class=ctinfo>
00______ YYYY00XX<br>
<br>
Writes the value XX to YYYY+1 consecutive <div title='8 bits, 2 hex digits' class=info>byte</div>-sized addresses, starting with the address <div title='Base Address' class=info>ba</div>+______<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 00 to 10.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=00'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits Write & Fill<a name='02'></a></div><div class=ctinfo>
02______ YYYYXXXX<br>
<br>
Writes the value XXXX to YYYY+1 consecutive <div title='16 bits, 4 hex digits' class=info>halfword</div>-sized addresses, starting with the address <div title='Base Address' class=info>ba</div>+______<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 02 to 12.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=02'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">32 bits Write<a name='04'></a></div><div class=ctinfo>
04______ XXXXXXXX<br>
<br>
Writes the value XXXXXXXX to <div title='Base Address' class=info>ba</div>+______<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 04 to 14.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=04'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">String Write (Patch Code)<a name='06'></a></div><div class=ctinfo>
06______ YYYYYYYY<br>
d1d2d3d4 d5d6....<br>
<br>
Writes each <div title='8 bits, 2 hex digits' class=info>byte</div> (d1, d2, d3, ...) consecutively, starting at address <div title='Base Address' class=info>ba</div>+______<br>
YYYYYYYY is the number of bytes to write<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 06 to 16.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=06'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Slider/Multi Skip (Serial)<a name='08'></a></div><div class=ctinfo>
08______ XXXXXXXX<br>
TNNNZZZZ VVVVVVVV<br>
<br>
______ + <div title='Base Address' class=info>ba</div> = Initial Address<br>
X = Initial value for the RAM write<br>
T = Value Size (0 = <div title='8 bits, 2 hex digits' class=info>byte</div>, 1 = <div title='16 bits, 4 hex digits' class=info>halfword</div>, 2 = <div title='32 bits, 8 hex digits' class=info>word</div>)<br>
N = Amount of additional addresses to write to (the first is assumed)<br>
Z = Address Increment; in bytes (How many To skip By)<br>
V = Value Increment (How much to add to the value after each additional RAM write)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 08 to 18.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=08'>More Information</a><a href='#'>Top</a></div></div></td><td class=ctnav><div>Direct Ram Writes</div><a href='#00'>8 bits</a><a href='#02'>16 bits</a><a href='#04'>32 bits</a><a href='#06'>String</a><a href='#08'>Serial</a><div>If Codes</div><a href='#20'>32 bits if Equal</a><a href='#22'>32 bits if Not Equal</a><a href='#24'>32 bits if Greater</a><a href='#26'>32 bits if Lower</a><a href='#28'>16 bits if Equal</a><a href='#2A'>16 bits if Not Equal</a><a href='#2C'>16 bits if Greater</a><a href='#2E'>16 bits if Lower</a><div>Base Address</div><a href='#40'>Load into</a><a href='#42'>Set to</a><a href='#44'>Store at</a><a href='#46'>Next Code's Location</a><div>Pointer Address</div><a href='#48'>Load into</a><a href='#4A'>Set to</a><a href='#4C'>Store at</a><a href='#4E'>Next Code's Location</a><div>Flow Control</div><a href='#60'>Set Repeat</a><a href='#62'>Execute Repeat</a><a href='#64'>Return</a><a href='#66'>Goto</a><a href='#68'>Gosub</a><div>Gecko Register</div><a href='#80'>Set grN to</a><a href='#82'>Load into grN</a><a href='#84'>Store grN at</a><a href='#86'>grN/Direct Value Ops</a><a href='#88'>grN Ops</a><a href='#8A'>Memory Copy 1</a><a href='#8C'>Memory Copy 2</a><div>grN If Codes</div><a href='#A0'>16 bits if Equal</a><a href='#A2'>16 bits if Not Equal</a><a href='#A4'>16 bits if Greater</a><a href='#A6'>16 bits if Lower</a><div>Counter If Codes</div><a href='#A8'>16 bits if Equal</a><a href='#AA'>16 bits if Not Equal</a><a href='#AC'>16 bits if Greater</a><a href='#AE'>16 bits if Lower</a><div>ASM Codes</div><a href='#C0'>Execute</a><a href='#C2'>Insert</a><a href='#C6'>Create Branch</a><div>Other</div><a href='#CC'>On/Off Switch</a><a href='#CE'>Address Range Check</a><a href='#E0'>Full Terminator</a><a href='#E2'>Endif (+else)</a><a href='#F0'>End of Codes</a><div>Gecko 1.8+ Only</div><a href='#F2'>Insert ASM + Checksum</a><a href='#F6'>(If) Search, Set Pointer</a><div> </div><div>Appendix</div><a href='./index.php?arsenal=1#CodetypeDetail'>Codetypes in depth</a><div> </div></td></tr><tr><td colspan=2><div class="cttitle b4 c4">If Codes</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">32 bits (endif, then) If equal<a name='20'></a></div><div class=ctinfo>
20______ XXXXXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 32 bits at [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>]==XXXXXXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 20 to 30.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=20'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">32 bits (endif, then) If not equal<a name='22'></a></div><div class=ctinfo>
22______ XXXXXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 32 bits at [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>]!=XXXXXXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 22 to 32.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=22'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">32 bits (endif, then) If greater than (unsigned)<a name='24'></a></div><div class=ctinfo>
24______ XXXXXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 32 bits at [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>]>XXXXXXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 24 to 34.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=24'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">32 bits (endif, then) If lower than (unsigned)<a name='26'></a></div><div class=ctinfo>
26______ XXXXXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 32 bits at [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>]<XXXXXXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 26 to 36.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=24'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If equal<a name='28'></a></div><div class=ctinfo>
28______ MMMMXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 16 bits at ([<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>] & not(MMMM))==XXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 28 to 38.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=28'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If not equal<a name='2A'></a></div><div class=ctinfo>
2A______ MMMMXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 16 bits at ([<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>] & not(MMMM))!=XXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 2A to 3A.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=2A'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If greater than<a name='2C'></a></div><div class=ctinfo>
2C______ MMMMXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 16 bits at ([<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>] & not(MMMM))>XXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 2C to 3C.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=2C'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If lower than<a name='2E'></a></div><div class=ctinfo>
2E______ MMMMXXXX<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If 16 bits at ([<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+______</div>] & not(MMMM))<XXXX,<br>
then codes are executed (else code execution set to false)<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from 2E to 3E.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=2E'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Base Address</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Load into Base Address<a name='40'></a></div><div class=ctinfo>
40TYZ00N XXXXXXXX<br>
<br>
40000 : <div title='Base Address' class=info>ba</div> = [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
40001 : <div title='Base Address' class=info>ba</div> = [<div title='The value at this address' class=info><div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
40010 : <div title='Base Address' class=info>ba</div> = [<div title='The value at this address' class=info>ba+XXXXXXXX</div>]<br>
40011 : <div title='Base Address' class=info>ba</div> = [<div title='The value at this address' class=info>ba+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
<br>
40100 : <div title='Base Address' class=info>ba</div> += [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
40101 : <div title='Base Address' class=info>ba</div> += [<div title='The value at this address' class=info><div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
40110 : <div title='Base Address' class=info>ba</div> += [<div title='The value at this address' class=info>ba+XXXXXXXX</div>]<br>
40111 : <div title='Base Address' class=info>ba</div> += [<div title='The value at this address' class=info>ba+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
<br>
50010 : <div title='Base Address' class=info>ba</div> = [<div title='The value at this address' class=info><div title='Pointer Address' class=info>po</div>+XXXXXXXX</div>]<br>
50011 : <div title='Base Address' class=info>ba</div> = [<div title='The value at this address' class=info><div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
<br>
50110 : <div title='Base Address' class=info>ba</div> += [<div title='The value at this address' class=info><div title='Pointer Address' class=info>po</div>+XXXXXXXX</div>]<br>
50111 : <div title='Base Address' class=info>ba</div> += [<div title='The value at this address' class=info><div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=40'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Set Base Address to<a name='42'></a></div><div class=ctinfo>
42TYZ00N XXXXXXXX<br>
<br>
42000 : <div title='Base Address' class=info>ba</div> = XXXXXXXX<br>
42001 : <div title='Base Address' class=info>ba</div> = <div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
42010 : <div title='Base Address' class=info>ba</div> = <div title='Base Address' class=info>ba</div>+XXXXXXXX<br>
42011 : <div title='Base Address' class=info>ba</div> = <div title='Base Address' class=info>ba</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
<br>
42100 : <div title='Base Address' class=info>ba</div> += XXXXXXXX<br>
42101 : <div title='Base Address' class=info>ba</div> += <div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
42110 : <div title='Base Address' class=info>ba</div> += <div title='Base Address' class=info>ba</div>+XXXXXXXX<br>
42111 : <div title='Base Address' class=info>ba</div> += <div title='Base Address' class=info>ba</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
<br>
52010 : <div title='Base Address' class=info>ba</div> = <div title='Pointer Address' class=info>po</div>+XXXXXXXX<br>
52011 : <div title='Base Address' class=info>ba</div> = <div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
<br>
52110 : <div title='Base Address' class=info>ba</div> += <div title='Pointer Address' class=info>po</div>+XXXXXXXX<br>
52111 : <div title='Base Address' class=info>ba</div> += <div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=42'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Store Base Address at<a name='44'></a></div><div class=ctinfo>
440YZ00N XXXXXXXX<br>
<br>
44000 : [<div title='The value at this address' class=info>XXXXXXXX</div>] = <div title='Base Address' class=info>ba</div><br>
44001 : [<div title='The value at this address' class=info>XXXXXXXX+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div></div>] = <div title='Base Address' class=info>ba</div><br>
44010 : [<div title='The value at this address' class=info>XXXXXXXX+ba</div>] = <div title='Base Address' class=info>ba</div><br>
44011 : [<div title='The value at this address' class=info>XXXXXXXX+ba+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div></div>] = <div title='Base Address' class=info>ba</div><br>
<br>
54010 : [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div></div>] = <div title='Base Address' class=info>ba</div><br>
54011 : [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div></div>] = <div title='Base Address' class=info>ba</div></div><div class=ctlinks><a href='./index.php?arsenal=1&ct=44'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Put next code's location into the Base Address<a name='46'></a></div><div class=ctinfo>
4600XXXX 00000000<br>
<br>
XXXX is a signed 16bits value : 0xFFFF=-1<br>
<div title='Base Address' class=info>ba</div> will hold the address at which the next line of code is stored + XXXX</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=46'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Pointer Address</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Load into Pointer Address<a name='48'></a></div><div class=ctinfo>
48TYZ00N XXXXXXXX<br>
<br>
48000 : <div title='Pointer Address' class=info>po</div> = [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
48001 : <div title='Pointer Address' class=info>po</div> = [<div title='The value at this address' class=info><div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
48010 : <div title='Pointer Address' class=info>po</div> = [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+XXXXXXXX</div>]<br>
48011 : <div title='Pointer Address' class=info>po</div> = [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
<br>
48100 : <div title='Pointer Address' class=info>po</div> += [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
48101 : <div title='Pointer Address' class=info>po</div> += [<div title='The value at this address' class=info><div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
48110 : <div title='Pointer Address' class=info>po</div> += [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+XXXXXXXX</div>]<br>
48111 : <div title='Pointer Address' class=info>po</div> += [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
<br>
58010 : <div title='Pointer Address' class=info>po</div> = [<div title='The value at this address' class=info>po+XXXXXXXX</div>]<br>
58011 : <div title='Pointer Address' class=info>po</div> = [<div title='The value at this address' class=info>po+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]<br>
<br>
58110 : <div title='Pointer Address' class=info>po</div> += [<div title='The value at this address' class=info>po+XXXXXXXX</div>]<br>
58111 : <div title='Pointer Address' class=info>po</div> += [<div title='The value at this address' class=info>po+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div>]</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=48'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Set Pointer Address to<a name='4A'></a></div><div class=ctinfo>
4ATYZ00N XXXXXXXX<br>
<br>
4A000 : <div title='Pointer Address' class=info>po</div> = XXXXXXXX<br>
4A001 : <div title='Pointer Address' class=info>po</div> = <div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
4A010 : <div title='Pointer Address' class=info>po</div> = <div title='Base Address' class=info>ba</div>+XXXXXXXX<br>
4A011 : <div title='Pointer Address' class=info>po</div> = <div title='Base Address' class=info>ba</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
<br>
4A100 : <div title='Pointer Address' class=info>po</div> += XXXXXXXX<br>
4A101 : <div title='Pointer Address' class=info>po</div> += <div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
4A110 : <div title='Pointer Address' class=info>po</div> += <div title='Base Address' class=info>ba</div>+XXXXXXXX<br>
4A111 : <div title='Pointer Address' class=info>po</div> += <div title='Base Address' class=info>ba</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
<br>
5A010 : <div title='Pointer Address' class=info>po</div> = <div title='Pointer Address' class=info>po</div>+XXXXXXXX<br>
5A011 : <div title='Pointer Address' class=info>po</div> = <div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX<br>
<br>
5A110 : <div title='Pointer Address' class=info>po</div> += <div title='Pointer Address' class=info>po</div>+XXXXXXXX<br>
5A111 : <div title='Pointer Address' class=info>po</div> += <div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div>+XXXXXXXX</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=4A'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Store Pointer Address at<a name='4C'></a></div><div class=ctinfo>
4C0YZ00N XXXXXXXX<br>
<br>
4C000 : [<div title='The value at this address' class=info>XXXXXXXX</div>] = <div title='Pointer Address' class=info>po</div><br>
4C001 : [<div title='The value at this address' class=info>XXXXXXXX+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div></div>] = <div title='Pointer Address' class=info>po</div><br>
4C010 : [<div title='The value at this address' class=info>XXXXXXXX+ba</div>] = <div title='Pointer Address' class=info>po</div><br>
4C011 : [<div title='The value at this address' class=info>XXXXXXXX+ba+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div></div>] = <div title='Pointer Address' class=info>po</div><br>
<br>
5C010 : [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div></div>] = <div title='Pointer Address' class=info>po</div><br>
5C011 : [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div>+<div title='Gecko Register N, N can be 0 to F' class=info>grN</div></div>] = <div title='Pointer Address' class=info>po</div></div><div class=ctlinks><a href='./index.php?arsenal=1&ct=4C'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Put next code's location into the Pointer Address<a name='4E'></a></div><div class=ctinfo>
4E00XXXX 00000000<br>
<br>
XXXX is a signed 16bits value : 0xFFFF=-1<br>
<div title='Pointer Address' class=info>po</div> will hold the address at which the next line of code is stored + XXXX</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=4E'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Flow Control</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Set Repeat<a name='60'></a></div><div class=ctinfo>
6000NNNN 0000000P<br>
<br>
Store next code address and NNNN (number of times to repeat) in <div title='Block P, P can be 0 to F' class=info>bP</div>.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=60'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Execute Repeat<a name='62'></a></div><div class=ctinfo>
62000000 0000000P<br>
<br>
If NNNN stored in <div title='Block P, P can be 0 to F' class=info>bP</div> is >0, it is decreased by 1 and the code handler jumps to the "next code address" stored in <div title='Block P, P can be 0 to F' class=info>bP</div></div><div class=ctlinks><a href='./index.php?arsenal=1&ct=62'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Return<a name='64'></a></div><div class=ctinfo>
64000000 0000000P<br>
If the code execution status is true, the code handler jumps to the "next code address" stored in <div title='Block P, P can be 0 to F' class=info>bP</div> (NNNN in <div title='Block P, P can be 0 to F' class=info>bP</div> is not touched).<br>
<br>
64100000 0000000P<br>
If the code execution status is false, the code handler jumps to the "next code address" stored in <div title='Block P, P can be 0 to F' class=info>bP</div> (NNNN in <div title='Block P, P can be 0 to F' class=info>bP</div> is not touched).<br>
<br>
64200000 0000000P<br>
No matter what the code execution status is, the code handler jumps to the "next code address" stored in <div title='Block P, P can be 0 to F' class=info>bP</div> (NNNN in <div title='Block P, P can be 0 to F' class=info>bP</div> is not touched).
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=64'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Goto<a name='66'></a></div><div class=ctinfo>
6600XXXX 00000000<br>
If the code execution status is true, the code handler jumps to (next line of code + XXXX lines). XXXX is signed.<br>
<br>
6610XXXX 00000000<br>
If the code execution status is false, the code handler jumps to (next line of code + XXXX lines). XXXX is signed.<br>
<br>
6620XXXX 00000000<br>
The code handler jumps to (next line of code + XXXX lines). XXXX is signed.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=66'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Gosub<a name='68'></a></div><div class=ctinfo>
6800XXXX 0000000P<br>
If the code execution status is true, the code handler stores the next code address in <div title='Block P, P can be 0 to F' class=info>bP</div>, then it jumps to (next line of code + XXXX lines). XXXX is signed.<br>
<br>
6810XXXX 0000000P<br>
If the code execution status is false, the code handler stores the next code address in <div title='Block P, P can be 0 to F' class=info>bP</div>, then it jumps to (next line of code + XXXX lines). XXXX is signed.<br>
<br>
6820XXXX 0000000P<br>
No matter what the code execution status is, the code handler stores the next code address in <div title='Block P, P can be 0 to F' class=info>bP</div>, then it jumps to (next line of code + XXXX lines). XXXX is signed.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=68'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Gecko Register</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Set Gecko Register to<a name='80'></a></div><div class=ctinfo>
80SY000N XXXXXXXX<br>
<br>
8000 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = XXXXXXXX<br>
8001 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = XXXXXXXX+<div title='Base Address' class=info>ba</div><br>
<br>
8010 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> += XXXXXXXX<br>
8011 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> += XXXXXXXX+<div title='Base Address' class=info>ba</div><br>
<br>
9001 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = XXXXXXXX+<div title='Pointer Address' class=info>po</div><br>
9011 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> += XXXXXXXX+<div title='Pointer Address' class=info>po</div>
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=80'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Load into Gecko Register<a name='82'></a></div><div class=ctinfo>
82UY000N XXXXXXXX<br>
<br>
8200 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 8bits at [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
8210 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 16bits at [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
8220 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 32bits at [<div title='The value at this address' class=info>XXXXXXXX</div>]<br>
<br>
8201 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 8bits at [<div title='The value at this address' class=info>XXXXXXXX+<div title='Base Address' class=info>ba</div></div>]<br>
8211 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 16bits at [<div title='The value at this address' class=info>XXXXXXXX+<div title='Base Address' class=info>ba</div></div>]<br>
8221 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 32bits at [<div title='The value at this address' class=info>XXXXXXXX+<div title='Base Address' class=info>ba</div></div>]<br>
<br>
9201 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 8bits at [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div></div>]<br>
9211 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 16bits at [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div></div>]<br>
9221 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = 32bits at [<div title='The value at this address' class=info>XXXXXXXX+<div title='Pointer Address' class=info>po</div></div>]
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=82'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Store Gecko Register at<a name='84'></a></div><div class=ctinfo>
84T0YYYN XXXXXXXX : Starting Address is XXXXXXXX<br>
84T1YYYN XXXXXXXX : Starting Address is XXXXXXXX+<div title='Base Address' class=info>ba</div><br>
94T1YYYN XXXXXXXX : Starting Address is XXXXXXXX+<div title='Pointer Address' class=info>po</div><br>
<br>
T = 0 : <div title='8 bits, 2 hex digits' class=info>byte</div><br>
T = 1 : <div title='16 bits, 4 hex digits' class=info>halfword</div><br>
T = 2 : <div title='32 bits, 8 hex digits' class=info>word</div><br>
<br>
Write <div title='Gecko Register N, N can be 0 to F' class=info>grN</div>'s T to YYY+1 consecutive T-sized addresses.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=84'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Gecko Register / Direct Value Operations<a name='86'></a></div><div class=ctinfo>
86TY000N XXXXXXXX<br>
<br>
86T0 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = (<div title='Gecko Register N, N can be 0 to F' class=info>grN</div> ? XXXXXXXX)<br>
86T1 : [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] = ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] ? XXXXXXXX)<br>
86T2 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = (<div title='Gecko Register N, N can be 0 to F' class=info>grN</div> ? [<div title='The value at this address' class=info>XXXXXXXX</div>])<br>
86T3 : [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] = ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] ? [<div title='The value at this address' class=info>XXXXXXXX</div>])<br>
<br>
T : ?<br>
0 : add (+)<br>
1 : mul (*)<br>
2 : or (|)<br>
3 : and (&)<br>
4 : xor (^)<br>
5 : slw (<<)<br>
6 : srw (>>)<br>
7 : rol (rotate left)<br>
8 : asr (arithmetic shift right)<br>
9 : fadds (single float add)<br>
A : fmuls (single float mul)
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=86'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Gecko Register Operations<a name='88'></a></div><div class=ctinfo>
88TY000N 0000000K<br>
<br>
88T0 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = (<div title='Gecko Register N, N can be 0 to F' class=info>grN</div> ? grK)<br>
88T1 : [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] = ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] ? grK)<br>
88T2 : <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> = (<div title='Gecko Register N, N can be 0 to F' class=info>grN</div> ? [<div title='The value at this address' class=info> grK </div>])<br>
88T3 : [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] = ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] ? [<div title='The value at this address' class=info> grK </div>])<br>
<br>
T : ?<br>
0 : add (+)<br>
1 : mul (*)<br>
2 : or (|)<br>
3 : and (&)<br>
4 : xor (^)<br>
5 : slw (<<)<br>
6 : srw (>>)<br>
7 : rol (rotate left)<br>
8 : asr (arithmetic shift right)<br>
9 : fadds (single float add)<br>
A : fmuls (single float mul)
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=88'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Memory Copy 1<a name='8A'></a></div><div class=ctinfo>
8AYYYYNK XXXXXXXX<br>
copy YYYY bytes from [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] to [<div title='The value at this address' class=info> grK </div>]+XXXXXXXX, grK can't be F.<br>
<br>
8AYYYYNF XXXXXXXX<br>
copy YYYY bytes from [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] to <div title='Base Address' class=info>ba</div>+XXXXXXXX<br>
<br>
9AYYYYNF XXXXXXXX<br>
copy YYYY bytes from [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] to <div title='Pointer Address' class=info>po</div>+XXXXXXXX
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=8A'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Memory Copy 2<a name='8C'></a></div><div class=ctinfo>
8CYYYYNK XXXXXXXX<br>
copy YYYY bytes from [<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>]+XXXXXXXX to [<div title='The value at this address' class=info> grK </div>], <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> can't be F.<br>
<br>
8CYYYYFK XXXXXXXX<br>
copy YYYY bytes from <div title='Base Address' class=info>ba</div>+XXXXXXXX to [<div title='The value at this address' class=info> grK </div>]<br>
<br>
9CYYYYFK XXXXXXXX<br>
copy YYYY bytes from <div title='Pointer Address' class=info>po</div>+XXXXXXXX to [<div title='The value at this address' class=info> grK </div>]
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=8C'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Gecko Register If Codes</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If equal<a name='A0'></a></div><div class=ctinfo>
A0______ KN00MMMM<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] and not(MMMM))==([<div title='The value at this address' class=info> grK </div>] and not(MMMM)) then codes are executed (else code execution set to false).<br>
<br>
If N or K is F, it will use <div title='Base Address' class=info>ba</div>+______ instead of grF!<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div> (when <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> or grK is F), change the codetype from A0 to B0.<br>
For values of ______ >= 0x01000000, add one to the codetype.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=A0'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If not equal<a name='A2'></a></div><div class=ctinfo>
A2______ KN00MMMM<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] and not(MMMM))!=([<div title='The value at this address' class=info> grK </div>] and not(MMMM)) then codes are executed (else code execution set to false).<br>
<br>
If N or K is F, it will use <div title='Base Address' class=info>ba</div>+______ instead of grF!<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div> (when <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> or grK is F), change the codetype from A2 to B2.<br>
For values of ______ >= 0x01000000, add one to the codetype.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=A2'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If greater<a name='A4'></a></div><div class=ctinfo>
A4______ KN00MMMM<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] and not(MMMM))>([<div title='The value at this address' class=info> grK </div>] and not(MMMM)) then codes are executed (else code execution set to false).<br>
<br>
If N or K is F, it will use <div title='Base Address' class=info>ba</div>+______ instead of grF!<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div> (when <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> or grK is F), change the codetype from A4 to B4.<br>
For values of ______ >= 0x01000000, add one to the codetype.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=A4'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If lower<a name='A6'></a></div><div class=ctinfo>
A6______ KN00MMMM<br>
<br>
Adding 1 to ______ will make this code first apply an Endif.<br>
(It will still use ______ for address calculation; without the added 1)<br>
<br>
If ([<div title='The value at this address' class=info> <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> </div>] and not(MMMM))<([<div title='The value at this address' class=info> grK </div>] and not(MMMM)) then codes are executed (else code execution set to false).<br>
<br>
If N or K is F, it will use <div title='Base Address' class=info>ba</div>+______ instead of grF!<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div> (when <div title='Gecko Register N, N can be 0 to F' class=info>grN</div> or grK is F), change the codetype from A6 to B6.<br>
For values of ______ >= 0x01000000, add one to the codetype.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=A6'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Counter If Codes</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If counter value equal<a name='A8'></a></div><div class=ctinfo>
A80ZZZZT MMMMXXXX<br>
<br>
ZZZZ : The code's counter.<br>
Code's Operation : If current execution status is true, increase counter by 1. If it's false, reset counter to 0.<br>
Condition : If (XXXX and not(MMMM))==ZZZZ, codes following this are executed (else code execution set to false).<br>
<br>
T = 0 : Do Code's Operation, then run Condition.<br>
T = 1 : Apply an Endif, then do Code's Operation, finally run Condition.<br>
T = 8 : Do Code's Operation, then run Condition (and if it is true, reset counter to 0).<br>
T = 9 : Apply an Endif, then do Code's Operation, finally run Condition (and if it is true, reset counter to 0).
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=A8'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If counter value not equal<a name='AA'></a></div><div class=ctinfo>
AA0ZZZZT MMMMXXXX<br>
<br>
ZZZZ : The code's counter.<br>
Code's Operation : If current execution status is true, increase counter by 1. If it's false, reset counter to 0.<br>
Condition : If (XXXX and not(MMMM))!=ZZZZ, codes following this are executed (else code execution set to false).<br>
<br>
T = 0 : Do Code's Operation, then run Condition.<br>
T = 1 : Apply an Endif, then do Code's Operation, finally run Condition.<br>
T = 8 : Do Code's Operation, then run Condition (and if it is true, reset counter to 0).<br>
T = 9 : Apply an Endif, then do Code's Operation, finally run Condition (and if it is true, reset counter to 0).
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=AA'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If counter value greater<a name='AC'></a></div><div class=ctinfo>
AC0ZZZZT MMMMXXXX<br>
<br>
ZZZZ : The code's counter.<br>
Code's Operation : If current execution status is true, increase counter by 1. If it's false, reset counter to 0.<br>
Condition : If (XXXX and not(MMMM))>ZZZZ, codes following this are executed (else code execution set to false).<br>
<br>
T = 0 : Do Code's Operation, then run Condition.<br>
T = 1 : Apply an Endif, then do Code's Operation, finally run Condition.<br>
T = 8 : Do Code's Operation, then run Condition (and if it is true, reset counter to 0).<br>
T = 9 : Apply an Endif, then do Code's Operation, finally run Condition (and if it is true, reset counter to 0).
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=AC'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">16 bits (endif, then) If counter value lower<a name='AE'></a></div><div class=ctinfo>
AE0ZZZZT MMMMXXXX<br>
<br>
ZZZZ : The code's counter.<br>
Code's Operation : If current execution status is true, increase counter by 1. If it's false, reset counter to 0.<br>
Condition : If (XXXX and not(MMMM))<ZZZZ, codes following this are executed (else code execution set to false).<br>
<br>
T = 0 : Do Code's Operation, then run Condition.<br>
T = 1 : Apply an Endif, then do Code's Operation, finally run Condition.<br>
T = 8 : Do Code's Operation, then run Condition (and if it is true, reset counter to 0).<br>
T = 9 : Apply an Endif, then do Code's Operation, finally run Condition (and if it is true, reset counter to 0).
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=AE'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">ASM Codes</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Execute ASM<a name='C0'></a></div><div class=ctinfo>
C0000000 NNNNNNNN<br>
ZZZZZZZZ ZZZZZZZZ<br>
ZZZZZZZZ ZZZZZZZZ<br>
4E800020 00000000<br>
<br>
Executes the NNNNNNNN lines of instruction placed under the code.<br>
The instructions MUST end with a blr (0x4E800020).
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=C0'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Insert ASM<a name='C2'></a></div><div class=ctinfo>
C2______ NNNNNNNN<br>
ZZZZZZZZ ZZZZZZZZ<br>
ZZZZZZZZ ZZZZZZZZ<br>
ZZZZZZZZ 00000000<br>
<br>
This code will replace the instruction at <div title='Base Address' class=info>ba</div>+______ with a branch that will point to ZZZZZZZZ.<br>
The replaced is not saved, the code creator must then put it in his code manualy (if needed).<br>
The instruction MUST end with ONE 00000000, because the code handler will add a "b (<div title='Base Address' class=info>ba</div>+______)" instruction there.<br>
If your asm code fills all the line, add a 60000000 00000000 under it (and count this line in NNNNNNNN).<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from C2 to D2.<br>
For values of ______ >= 0x01000000, add one to the codetype.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=C2'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Create a branch<a name='C6'></a></div><div class=ctinfo>
C6______ YYYYYYYY<br>
<br>
Writes, at ______+<div title='Base Address' class=info>ba</div>, a "b YYYYYYYY" instruction.<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from C6 to D6.<br>
For values of ______ >= 0x01000000, add one to the codetype.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=C6'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Other</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">On/Off Switch<a name='CC'></a></div><div class=ctinfo>
CC000000 00000000<br>
<br>
This code will only work correctly if an If... code is placed before it.<br>
Each time the code execution status goes from true to false to true, and the switch code is reached, the "switch" is moved. The switch moves from on<->off, and set the code execution accordingly to its state. The value of the switch is stored inside the code.<br>
It is NOT an If... code. It only changes the current code executions status.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=CC'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Address Range Check<a name='CE'></a></div><div class=ctinfo>
CE00000T XXXXYYYY<br>
<br>
T = 0, Don't apply Endif.<br>
T = 1, Apply Endif.<br>
Then check if <div title='Base Address' class=info>ba</div> >= 0xXXXX0000 and <div title='Base Address' class=info>ba</div> < 0xYYYY0000.<br>
If XXXX>=YYYY, then the code will always set the code execution to false.<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from CE to DE.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=CE'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Full Terminator<a name='E0'></a></div><div class=ctinfo>
E0000000 XXXXYYYY<br>
<br>
Clears the code execution status.<br>
If XXXX<>0, <div title='Base Address' class=info>ba</div> = 0xXXXX0000<br>
If YYYY<>0, <div title='Pointer Address' class=info>po</div> = 0xYYYY0000
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=E0'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Endif (+else)<a name='E2'></a></div><div class=ctinfo>
E2T000VV XXXXYYYY<br>
<br>
T = 0, Applies VV Endifs.<br>
T = 1, Applies VV Endifs and inverse the code execution status (="else").<br>
<br>
If XXXX<>0, <div title='Base Address' class=info>ba</div> = 0xXXXX0000<br>
If YYYY<>0, <div title='Pointer Address' class=info>po</div> = 0xYYYY0000
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=E2'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">End of Codes<a name='F0'></a></div><div class=ctinfo>
F0000000 00000000<br>
<br>
Tells the code handler that there are no more codes in the code list. The code handler exits.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=F0'>More Information</a><a href='#'>Top</a></div></div><div class="cttitle b4 c4">Gecko 1.8+ Only</div><div class="ct bg1 b8"><div class="title b3 c3 bg5">Insert ASM With 16 bit XOR Checksum<a name='F2'></a></div><div class=ctinfo>
F2______ YYZZZZNN<br>
ZZZZZZZZ ZZZZZZZZ<br>
ZZZZZZZZ ZZZZZZZZ<br>
ZZZZZZZZ 00000000<br>
<br>
YY (signed) 16-bit values after (if positive) or before (if negative) [<div title='The value at this address' class=info><div title='Base Address' class=info>ba</div> + ______</div>] will be XOR'ed together. If the result is equal to ZZZZ, the code will be executed.<br>
The rest of the code functions the exact same way as the C2 codetype (Insert ASM), with NN as the number of lines.<br>
<br>
<br>
To use <div title='Pointer Address' class=info>po</div> instead of <div title='Base Address' class=info>ba</div>, change the codetype from F2 to F4.<br>
For values of ______ >= 0x01000000, add one to the codetype.</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=F2'>More Information</a><a href='#'>Top</a></div></div><div class="ct bg1 b8"><div class="title b3 c3 bg5">(If) Search, Set Pointer<a name='F6'></a></div><div class=ctinfo>
F60000NN XXXXYYYY<br>
ZZZZZZZZ ZZZZZZZZ<br>
ZZZZZZZZ ZZZZZZZZ<br>
<br>
Creates an if (so this code requires an endif), then searches for the NN lines of Z values between XXXX0000 and YYYY0000 (or, if XXXX is 8000, between 80003000 and YYYY0000).<br>
To prevent this code from causing game lag, it will only search the first time it is read by the code handler (the result is saved to the code and reused).<br>
If the Z values are found, set <div title='Pointer Address' class=info>po</div> to the starting address of the values (SSSSSSSS) and replace the F6 line with F60003NN SSSSSSSS.<br>
If the Z values are not found, then set code execution status to false and replace the F6 line with F60001NN XXXXYYYY.
</div><div class=ctlinks><a href='./index.php?arsenal=1&ct=F6'>More Information</a><a href='#'>Top</a></div></div></td></tr><tr><td colspan=2><div class=cttitle> </div><div class=cttitle>Appendix</div><div class=ct><div class=title>Codetypes in depth<a name='CodetypeDetail'></a></div><div class=ctinfo>A hex digit actually represents 4 bits, and you need to look at the underlying bits to understand why the code types are defined the way they are. Normally, we refer to a 32-bit RAM write as an "04 code type", but this is actually a misnomer. It misleadingly implies that the 8 bits belonging to the two hex digits "04" are the code type, when the actual code type only has 7 bits! The 8th bit belongs to the address, which creates the "05" code type. People also think that the address is only comprised of 24 bits (the other 6 hex digits), when the address is actually 25 bits (the other 6 hex digits + the last bit of the second digit).<br><br>
A picture may help; Here's the binary breakdown of the first <div title='32 bits, 8 hex digits' class=info>word</div> of a code.<br>
<br>
Hex Digit |<div style='display: inline; background: red;'> First </div>|<div style='display: inline; background: teal;'> Second </div>|<div style='display: inline; background: lightblue;'> Third </div>|<div style='display: inline; background: lightblue;'> Fourth ...</div><br>
Bit# |<div style='display: inline; background: red;'> 0 1 2 </div>|<div style='display: inline; background: pink;'> 3 </div>|<div style='display: inline; background: teal;'> 4 5 6 </div>|<div style='display: inline; background: lightblue;'> 7 </div>|<div style='display: inline; background: lightblue;'> 8 9 10 11 </div>|<div style='display: inline; background: lightblue;'> 12 ...</div><br>
is |<div style='display: inline; background: red;'> Code Type </div>|<div style='display: inline; background: pink;'> ba/po </div>|<div style='display: inline; background: teal;'> Code Sub Type </div>|<div style='display: inline; background: lightblue;'> address ..............................</div><br>
<br><br></div><div class=ctlinks><a href='./index.php?hacker=dcx2' title='This entry from dcx2'>dcx2</a> <a href='#'>Top</a></div></div></td></tr></table></div> <div class=googleads>
<script type="text/javascript"><!--
google_ad_client = "pub-8544672680682550";
/* 728x90, created 12/29/09 */
google_ad_slot = "3644950698";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td></tr></table>
<!-- Begin Google Analytics Code -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try { var pageTracker = _gat._getTracker("UA-10110819-1"); pageTracker._trackPageview(); } catch(err) {}
</script>
<!-- End Google Analytics Code -->
<div class=copy><br>
This Page and Source Code © Copyright 2008-2014, <a href="http://wiigeckocodes.github.io/hackers.html">BannerBomb</a>. All content is property of their original creators and may be removed by them at any time.
</div>
<div class=endpage>
<br>
<script type="text/javascript"><!--
google_ad_client = "pub-8544672680682550";
/* 728x90, created night 12/29/09 */
google_ad_slot = "3093191308";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
</div>
</body>
</html>