1 ; sped - the stupidly pointless editor
21 banner_str db `SPED - the stupidly pointless editor\n`, 0x00
22 nofile_str db `no file provided\n`, 0x00
23 prompt_str db `sped > `, 0x00
24 invalidcommand_str db `invalid command\n`, 0x00
25 charcount_str db `read %i chars\n`, 0x00
40 ; read command line args
45 ; display error msg if no file
52 mov ebx, DWORD [ebp+_ARGV]
53 add ebx, 4 ; first user arg is filename
58 mov [buffer_lines], ebx
59 mov DWORD [cur_line], 0x00
75 ; no args - reads from globals
78 %define CMDSTR 4 ; the previous line read from user
93 ; read line from stdin
97 mov DWORD [ebp-CMDSTR], eax
99 ; commands are single char for now
104 mov eax, DWORD [ebp-CMDSTR]
108 mov eax, DWORD [ebp-CMDSTR]
110 jne _repl_cmd_quit_end
116 push invalidcommand_str