Advertisement

The Console Screen Decoder is an expression made by NEON725 that functions much like the 8 segment display decoder. Instead of decoding a number into raw data for the display, however, it takes a string and types it out on the very cumbersome console screens.

To use, wire all the inputs of the wire screen to the outputs of the expression which match. CharParam must be wired to a constant value of 999. --NOTE: I did not wire this to a built-in constant value because CharParam can be modified to the user's preference. However, doing so is beyond the scope of this page.

The inputs for the expression are the string to be typed and a go button.


@name Console Screen Decoder 
 
@inputs Text:string Go 
 
@outputs CharX CharY Char Clk 
 
@persist I 

 
interval(1) if(first()|(~Go&Go)){CharX=-1, CharY=0, Char=-1, Clk=1, I=0} if(clk()) {
 
 Reset=0
 
    Clk=!Clk
 
    if(Clk)
 
    {
 
        I++
 
        if(I<=1500)
 
        {
 
            CharX++
 
            if(CharX==30){CharX=0, CharY++}
 
            Char=toByte(Text:index(I))
 
        }
 
    }
 
}
Community content is available under CC-BY-SA unless otherwise noted.