-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreference.html
130 lines (130 loc) · 2.41 KB
/
reference.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<title>EmojiCoder</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
</head>
<body>
<div class="header">
<h1>EmojiCoder<span class="title2"> reference</span></h1>
</div>
<div class="container">
Lines of code are formatted as [command][modifier][parameter][new-line]
<br>
<br>
Commands:
<br>
👇: push [param] on to the stack
<br>
👆: pop off the stack
<br>
✋: output top item on stack
<br>
👋: output [param]
<br>
📦: set accumulator [param]
<br>
➕ : add [param] to accumulator
<br>
➖ : subtract [param] from accumulator
<br>
➗ : divide accumulator by [param]
<br>
✖ : multiply accumulator by [param]
<br>
📫: output accumulator
<br>
📝: output newline
<br>
🔻: push accumulator on to the stack
<br>
🔺: set accumulator to the top of the stack
<br>
🎒: set x to [param]
<br>
🚥: push x on to stack
<br>
🚦: set x to the top of stack
<br>
🔹: set x to accumulator
<br>
🔸: set accumulator to x
<br>
➕✖: add x to accumulator
<br>
➖✖: subtract x from accumulator
<br>
➗✖: divide accumulator by x
<br>
✖✖: mulitply accumulator by x
<br>
📪: output x
<br>
🔛: compares x to a
<br>
~if param=0 in binary, <
<br>
~if param=1 in binary, =
<br>
~if param=2 in binary, >
<br>
~if statement is true, compile next line else skip
<br>
🔁: repeat next line [param] times
<br>
📧: set stringbuilder to [param]
<br>
📥: add [param] to stringbuilder
<br>
📤: remove last character from stringbuilder
<br>
📨: output stringbuilder
<br>
🙈: pushes random num zero to [param] on to stack
<br>
🙉: sets x to random num zero to param
<br>
<br>
Modifers:
<br>
🔡: Ascii Character 0-255
<br>
🔢: Integer Number 0-255
<br>
Parameters:
<br>
As binary where 🌚=0 and 🌝=1
<br>
Ex: 🌚🌝🌚🌚🌚🌚🌚🌝
<br>
=0100 0001
<br>
=65
<br>
="A"
<br>
<br>
Variable Reference:
<br>
Stack: An implementation of a stack
<br>
Has operations push and pop
<br>
Accumulator: Used to store and do arithmetic on a number
<br>
X: Used to temporarily store a number
<br>
String builder: Used to store and build up a string
<br>
<br>
Comments:
<br>
Comments are in progress
<br>
On lines which take parameters putting //comment on the end is ok
</div>
</body>
</html>