edge cases and more commands
[sped.git] / README.md
1 ## SPED - the stupidly pointless editor
2
3 **sped** is a line editor written in x86 assembly. Back in the day, before visual editors, line editors like **ed** were used.
4 This is my own stupid and pointless attempt at writing such line editor.
5
6 ### INSTALLATION
7
8 #### Build from source
9
10 with `gcc` and `nasm` installed, you can simply run
11 ```
12 make
13 ```
14 to build the project
15
16 ### COMMANDS
17
18 **p** - prints the contents of the current line
19
20 **n** - prints the current line number
21
22 **+/-** - moves up/down a line
23
24 **g/G** - jumps to top/bottom of file
25
26 **c** - change the contents of the current line
27
28 **o/O** - insert line after/before current line
29
30 **d** - delete current line
31
32 **w** - saves file
33
34 **q** - exists the program
35
36 ### FAQ
37
38 **what is the point of this**
39
40 obviously, we live in a day and age where we have the comfort of visual editors, so line editors like these have become obsolete. i simply wanted to work on a relatively easy to implement project so i can learn some assembly.
41
42 **are you insane**
43
44 yes
45