We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

WhatInTheWorld

From Esolang
Jump to navigation Jump to search

WhatInTheWorld is an esoteric programming language made by User:The-coder256. It uses numbers to determine instructions.

Instructions

WhatInTheWorld uses A, B and D to store information as well as 16384 memory addresses.

Number Meaning Pseudocode
00 Increment A A++
01 Increment B B++
02 Increment D D++
03 Decrement A A--
04 Decrement B B--
05 Decrement D D--
06 Store A into memory address D M[D] = A
07 Store B into memory address D M[D] = B
08 Store D into memory address D M[D] = D
09 Load value at memory address D into A A = M[D]
10 Load value at memory address D into B B = M[D]
11 Load value at memory address D into D D = M[D]
12 Outputs A (as ASCII character) print(A)
13 Outputs B (as ASCII character) print(B)
14 Receives input and stores it in A (as ASCII character) A = input()
15 Receives input and stores it in B (as ASCII character) B = input()
16 Receives input and stores it in D (as ASCII character) D = input()
17 Repeats everything enclosed in 17 and 18 until A == 0 while A != 0 { ... }
19 Repeats everything enclosed in 19 and 20 until B == 0 while B != 0 { ... }
21 Repeats everything enclosed in 21 and 22 until D == 0 while D != 0 { ... }
23 Terminates the program exit()
24 No operation nop

Examples

Hello, world!

TBA

Cat program

0017141218