Kittytype
Jump to navigation
Jump to search
Designed by | User:Lim95 |
---|---|
Appeared in | 2025 |
Dimensions | One-dimensional |
Computational class | Turing complete |
Major implementations | Python |
File extension(s) | .txt , .ktt |
KittyType is an esolang created by Lim95 on September 17th, 2025. It is named as such because the code looks like a cat ran across your keyboard.
Opcode | Name | Function | Arguments |
---|---|---|---|
L | Load | Load next value given into the Data value | Value |
I | Increment | Increment Data value | None |
i | Decrement | Decrement Data value | None |
P | Print Data value as character relative to Charmap | None | |
p | Print Number | Print Data value as number | None |
A | Add | Add next value to Data value | Value |
S | Subtract | See above | Value |
M | Multiply | See above | Value |
m | Modulo | See above | Value |
a | Bitwise AND | See above | Value |
o | Bitwise OR | See above | Value |
x | Bitwise XOR | See above | Value |
Q | Push | Push Data value to the Stack | None |
q | Pull | Pull top of Stack into Data value | None |
r | Reverse | Reverse the Stack | None |
G | Compare (>) | Set the Result flag if the Value is greater than Data | Value |
g | Compare (<) | Set the Result flag if the Value is less than Data | Value |
E | Compare (=) | Set the Result flag if the Value is equal to Data | Value |
e | Compare (=) | Set the Result flag if the Value is not equal to Data | Value |
O | OR | Set the OR flag to enabled | None |
N | AND | Set the AND flag to enabled | None |
J | Jump | Set pointer to Number | Number |
C | Conditional Jump | Set pointer to Number if Result flag is True | Number |
X | Subroutine | Push Pointer to Function Stack and jump to Number | Number |
H | Cond. Subroutine | See above, but only if Result flag is True | Number |
B | Back | Pop value from the Function Stack and jump to there | None |
F | False | Set Result flag to False | None |
f | True | Set Result flag to True | None |
n | Invert | Invert Result flag | None |
b | Debug Condition | Print the Result flag | None |
K | Input | Get one character of input into Data | None |
k | Number Input | Get a number input into Data | None |
T | Transfer | Swap the top of the Stack and the Data value | None |
! | End | End the program | None |
The ~ character can be used as a replacement for any Value or Number, as a placeholder for the value on the top of the stack.
Values are single-character, and are an index into the Charmap.
The Charmap is: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"',.?!+-*=|\~`()[]{}@#%^&/ (newline)
In this model, the number 2 would be replaced with C.
Numbers are formatted in base-10 with a period after. For example: J10.
All calculations are performed in mod 64. The program will loop if it reached the end without an ! character.
Example programs can be found here.