Buffalo Lang

Printing output

Buffalo uses the full-stop symbol '.' to print out the ascii representation of the pointed to value to the screen. The decimal values stored in memory are coverted to ascii characters and echoed.

Consider the following state of the buffer:

 0   1   2   3   4  5  ... 255
[72][69][76][79][0][0][...][0]
 ^

72 is the decimal representation of the ASCII character 'H'. We can print it to the screen by executing a single full-stop in code.

.

This will output:

H

By shifting the pointer right and echoing the value we can print out the whole of the string.

. buffalo Buffalo. buffalo Buffalo.. buffalo Buffalo.

Will output the following:

HELLO