Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Page 2 of 7
Table of Contents
Specifications and features: ...................................................................................................... 3 GOTO system: ............................................................................................................................ 3 Programming protocol: ............................................................................................................. 3
Mode selector: (blue).......................................................................................................................... 3 Arguments: (black) .............................................................................................................................. 4
ALU arguments: ............................................................................................................................................. 4 GPU arguments: ............................................................................................................................................. 4 RAM arguments: ............................................................................................................................................ 4 Input arguments: ........................................................................................................................................... 4
RAM saving or loading(black) ............................................................................................................. 5 Turning on, off and resetting: ................................................................................................................ 5
Turning on: ......................................................................................................................................................... 5 Turning off: ......................................................................................................................................................... 5 Resetting: ........................................................................................................................................................... 5 Un-jamming the clock: ....................................................................................................................................... 6
About program sectors ............................................................................................................. 6 About ram slots ......................................................................................................................... 6 Reporting bugs, overclocking and fixing. ................................................................................. 7
Note: since version 1.2 you do not have to refer to the map for turning on and off, and programming. All buttons can be controlled form spawn, and gthe program manager is connected via minecart rails.
Page 3 of 7
GOTO system:
The redgame supports IF() ELSE() based conditional branching, used in modern computers. The redgame uses this branching creatively and is very powerful, allowing conditional branching for A=B, input switch=TRUE and A=NULL checking, and their reverse. Conditional branching is allowed(or forced) in every command of the program, telling the system where to go when the current command has been executed. If you do not want to use this in a certain piece of code, or all of them, simply set both GOTOs to current line of code+1. It can also be used for loops without conditions by setting both GOTOs to the line at which the loop starts on the last line of code from the loop. Conditional branching can also bring you out of a loop. NOTE: To find out about the accessing of lines of code, see: program sectors.
Programming protocol:
colour function No. Of bits Line 1 Red IF 0 GOTO 6 Line 2 Green If 1 or more GOTO 6 Line 3 Black Mode argument 4 Line 4 Blue Mode selector 2 Line 5 Black Save answer to RAM: 4
Page 4 of 7
Arguments: (black)
Note: depends on witch mode is selected! ALU arguments: ALU input 001* 010* 011* 100* 101* 110* 1110 If *=1 invert answer, 0= do not invert
GPU arguments: GPU input GPU/screen function 10** Draw/save shape 01** Clear screen/shapes 11** Update number screen 00** Last 2 bits: draw mode selector, not matter if performing function or not in GPU mode. RAM arguments: Please refer to the RAM access table. This chooses what to load from ram, which will be saved into the save to ram selection. IMPORTANT NOTICE: this computer is not capable of saving to a RAM slot of an actual higher value than what is loaded! If you wish to save to a higher slot, it must go through the ALU.
Input arguments: Argument given: Input port: **10 2 **01 3 **11 4 **00 1 The port listened to will change the GOTO system, use this to branch your program depending on user selection.
Page 5 of 7
Warning: when saving to ram(NOT loading from ram!) the value must be inserted backwards! E.g. 1100=0011
Turning on:
1. Make sure the device has been reset if new code is in place, or if you do not want to resume your current program. 2. Flick the clock switch so that the clock starts to function. 3. When the light turns on, the program is running. Note: a program is capable of ending itself (GOTO 0), which will turn off the running indicator lamp. Please note that this does NOT stop the clock, and you need to manually turn this off before saving and quitting.
Turning off:
1. Turn off the clock with the clock switch. 2. Wait for the lamp to turn off before quitting minecraft, to prevent repeater jamming.
Resetting:
1. Pull down the override command switch
Page 6 of 7 2. Press the manual tick button 3. Wait a bit and pull up the system reset switch.
1. 2. 3. 4.
Turn off the clock. Find a button at the clock labelled fix clock. Press the button. You may need to press it multiple times A system reset is recommended
Page 7 of 7