X-Git-Url: https://git.danieliu.xyz/?p=sped.git;a=blobdiff_plain;f=macros.S;fp=utils.S;h=afde07d023ed6acc8b0840daa0929087b84201fd;hp=5c09a235bac204e38f119701911af52533ad26f1;hb=6cf67300c03d92a9cc0c5888b33cdb21a852eb69;hpb=89732d399de9007aaf2894b0c637e8cfb9ed47ac diff --git a/utils.S b/macros.S similarity index 69% rename from utils.S rename to macros.S index 5c09a23..afde07d 100644 --- a/utils.S +++ b/macros.S @@ -2,6 +2,14 @@ %ifndef __UTILS_S__ %define __UTILS_S__ +%macro write_str 2 + mov eax, 4 + mov ebx, 1 + mov ecx, %1 + mov edx, %2 + int 0x80 +%endmacro + ; gets the nth string ptr in a str array ; of the form: str_offset buffer, n ; result is in eax @@ -12,7 +20,4 @@ add eax, DWORD %1 %endmacro -extern shiftLeft -extern shiftRight - %endif