X-Git-Url: https://git.danieliu.xyz/?p=sped.git;a=blobdiff_plain;f=utils.S;fp=utils.S;h=5c09a235bac204e38f119701911af52533ad26f1;hp=0000000000000000000000000000000000000000;hb=89732d399de9007aaf2894b0c637e8cfb9ed47ac;hpb=7a7ed6ae81978b84911dab0b902e77ebb7e9b735 diff --git a/utils.S b/utils.S new file mode 100644 index 0000000..5c09a23 --- /dev/null +++ b/utils.S @@ -0,0 +1,18 @@ + +%ifndef __UTILS_S__ +%define __UTILS_S__ + +; gets the nth string ptr in a str array +; of the form: str_offset buffer, n +; result is in eax +%macro str_offset 2 + mov eax, %2 + mov ecx, 4 + mul ecx + add eax, DWORD %1 +%endmacro + +extern shiftLeft +extern shiftRight + +%endif