diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5d9f395 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.fuse_hidden* \ No newline at end of file diff --git a/examples/HWA/main b/examples/HWA/main index fad9ef8..8fb7e1b 100644 Binary files a/examples/HWA/main and b/examples/HWA/main differ diff --git a/examples/network/main b/examples/network/main index ae1ef0f..2ae5a2c 100644 Binary files a/examples/network/main and b/examples/network/main differ diff --git a/src/std.asm b/src/std.asm index 4ed241c..2a5a05e 100644 --- a/src/std.asm +++ b/src/std.asm @@ -39,15 +39,13 @@ _str: prelude mov ecx, [ebp+2*4] - - xor edx, edx + mov edx, -1 @@: - cmp [ecx+edx], byte 0 - je @f inc edx - jmp @b - @@: + cmp [ecx+edx], byte 0 + jne @b + mov eax, 4 mov ebx, 1 int 80h @@ -167,7 +165,6 @@ _int: add esp, 4 ret - exit: mov eax, 1 xor ebx, ebx diff --git a/std.o b/std.o index 82b562a..069204b 100644 Binary files a/std.o and b/std.o differ