X-Git-Url: https://git.danieliu.xyz/?p=sped.git;a=blobdiff_plain;f=sped.asm;h=544ec3cdcd246740d7e6f7fb03e4dbc2e9acadf8;hp=a14dbd4867bbad6ea69eedc36680cd8a7bb01e19;hb=6cf67300c03d92a9cc0c5888b33cdb21a852eb69;hpb=89732d399de9007aaf2894b0c637e8cfb9ed47ac diff --git a/sped.asm b/sped.asm index a14dbd4..544ec3c 100644 --- a/sped.asm +++ b/sped.asm @@ -1,21 +1,13 @@ ; sped - the stupidly pointless editor -; written by pinosaur -%include "fileutils.S" -%include "repl.S" +%include "macros.S" extern printf -global main +extern readFile +extern repl -; macros -%macro write_str 2 - mov eax, 4 - mov ebx, 1 - mov ecx, %1 - mov edx, %2 - int 0x80 -%endmacro +global main section .data banner_str db `SPED - the stupidly pointless editor\n`, 0x00