Strings


    L = long register, D = double register
    S = string variable


    move_s      S1, S2;         move string "S1" to "S2"
    move_p2s    S1, L, S2;      move char at position "L" of "S1" to "S2"
    move_s2p    S1, S2, L;      move string "S1" to position "L" of "S2"

    move_s_a    S1, S2, L;      move string "S1" to string array "S2"
    move_a_s    S1, L, S2;      move from string array "S1" to string "S2"

    add_s       S1, S2, S3;     add string "S1" and "S2" to "S3"

    strlen      S, L;           return string length to "L"
    strleft     S1, L, S2;      move the left "L" chars of "S1" to "S2"
    strright	S1, L, S2;      move the right "L" chars of "S1" to "S2"
    ucase       S;              to uppercase
    lcase       S;              to lowercase
    char        L, S;           makes the string "S" from the ASCII-code of "L"
    asc         S, L;           makes the ASCII-code "L" from the string "S"


                        |------ set to "1" if true, "0" if false
    eq_s        S1, S2, L;      equal
    neq_s       S1, S2, L;      not equal
    
Strings are declared like other arrays:

        string      s[13];          space for 12 chars
    
To move a string constant to "s":

        move_s      "Hello", s;
    
Add a string:

        add_s       s, " world!", s;        -> "Hello world!"
    
Uppercase:

        ucase       s;                      -> "HELLO WORLD!"
    
Change a part:

        push_i      6, L0;
        move_s2p    "YOU!  ", s, L0;        -> "HELLO YOU!  "
    
Prev: Arrays | Next: Time