X-Git-Url: https://git.danieliu.xyz/?p=sped.git;a=blobdiff_plain;f=repl.asm;h=750e430becf71190c68fb18fb4c37f725951b3dc;hp=038bb1a5b3c2c7519568eaf3f7bde6df48a1d773;hb=HEAD;hpb=737708d2a5e6ec61079236484c0a4c8234206ea8 diff --git a/repl.asm b/repl.asm index 038bb1a..750e430 100644 --- a/repl.asm +++ b/repl.asm @@ -1,3 +1,6 @@ +; sped - the stupidly pointless editor +; written by pinosaur +; repl.asm: user interactions extern printf extern fflush @@ -13,10 +16,9 @@ global repl section .data prompt_str db `sped > `, 0x00 - invalidcmd_str db `invalid command\n`, 0x00 - invalidaddr_str db `invalid address\n`, 0x00 - oneline_str db `cannot delete line, as there is only one line\n`, 0x00 - charcount_str db `read %i chars\n`, 0x00 + invalidcmd_str db `invalid command.\n`, 0x00 + invalidaddr_str db `invalid address.\n`, 0x00 + oneline_str db `cannot delete line, as there is only one line.\n`, 0x00 currentline_str db `current line: %i\n`, 0x00 echo_str db `%s`, 0x00 ; print strings without format exploit