DS Ultimate banner

Debug Guide Part 2

SECTOR II The Code Behind the code

Chapter 3: Understanding LoopProc

This Section is about Understanding the term "LoopProc". First off what the term LoopProc Means is Loop Processor and actually things as smart as the computer have a loop processor here is what a Loop Processor is.

One of the three basic logic structures in computer programming. The other two logic structures are selection and sequence. In a loop structure, the program asks a question, and if the answer requires an action, it is performed and the original question is asked again until the answer is such that the action is no longer required. For example, a program written to compute a company’s weekly payroll for each individual employee will begin by computing the wages of one employee and continue performing that action in a loop until there are no more employee wages to be computed, and only then will the program move on to its next action. Each pass through the loop is called an iteration. Loops constitute one of the most basic and powerful programming concepts.

All logic problems in programming can be solved by forming algorithms using only the three logic structures, and they can be combined in an infinite number of ways. The more complex the computing need, the more complex the combination of structures.

That is what the meaning of loop is here is the meaning of processor: A Graphics Processing Unit or GPU (also occasionally called Visual Processing Unit or VPU) is a dedicated graphics rendering device for a personal computer, workstation, or game console. Modern GPUs are very efficient at manipulating and displaying computer graphics, and their highly parallel structure makes them more effective than typical CPUs for a range of complex algorithms. A GPU usually sits on top of a video card, although lower-end chips often are integrated directly into the motherboard. A GPU implements a number of graphics primitive operations in a way that makes running them much faster than drawing directly to the screen with the host CPU. The most common operations for early 2D computer graphics include the BitBLT operation (combines several bitmap patterns using a RasterOp), usually in special hardware called a "blitter", and operations for drawing rectangles, triangles, circles, and arcs. Modern GPUs also have support for 3D computer graphics, and typically include digital video-related functions as well.

Now that you are as close to completely understanding LoopProcs Here are the different errors of the Loop Proc that you will find in the debug menu:

So that ends the chapter on loop proc next chapter will cover the rest.

CHAPTER 4: A Demonstration

UF 2004-11-05 21:13:01 Adminstr
StageNo 6: Bombhei Map
CPS:2000001F
PlayerID: 0
R00:00004000
LayerID: 1
R01:0000009A
RoomNo: 0
R02:00000000
LoopProc 1: Connect
R03:0210255C
R04:0209E190
R05:00004000
file-id: 8078
R06:00000001
R07:00000017
R08:00000016
IRQ IE: 00140009
R09:00000002
R10:0000000B
R11:00000003
R12:02042814
SP:023C3914
Rootheap 2230+308kb
LR:020424SC
Gameheap 179+56kb
PC:0203A138
SPSR0005707D
CP1500000000

CHAPTER 5:

The Level codes (courtesy of cheat_master30 and Mike O' SHAY)

CHAPTER 6: Delving Deeper into the codes

So First off the so called "mysterious date" at the top of the screen. Actually it's not that mysterious, though the dates are different what they say is the platformer creation date notice how all dates are before the date 11/21/04 indicating the platformer creation date.

Now the random R00-R12 numbers on the side of the menu, I don't have to really explain it as much more than Data addresses; basically they're like other computing terms only more complex: KB, MB, GB. So actually that explains the rapidly changing numbers on the very bottom and the RootHeap:1765+56KB and the GameHeap 275+45KB.<.p>

The Game Heap is comparable to the RAM drive of a computer, The RootHeap is comparable to the hard drive, In this case the Hard drive would be the hard drive of the game, not the DS itself.<.p>

The Last part for me to explain is the PlayerID, LayerID, RoomNo and file-id, Simply put they are what you have chosen the file-id is the file you are on (a,b,c) PlayerId is what player you are (Mario, Yoshi, Lugi or Wario) the layerId is what floor you are on and the room is what room you are in.<.p>

The next sector should be Faqs plus the ending of the information (causing of freezing stuff like that.) So keep Reading!

In Chapter 3:Understanding LoopProc I Told You what LoopProc meant but not what the words meant. The Words Are commands and what the LoopProc is currently doing.