We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93513cd commit efe2886Copy full SHA for efe2886
ast.asm
@@ -35,6 +35,7 @@ iocla_atoi: ;change string to number
35
jnz atoi_loop ;if it is not a minus sign just do the rest as usual
36
mov edx, 1
37
mov [isNegativeAtoi], edx ;change global variable
38
+ inc eax ;get rid of the minus
39
40
atoi_loop:
41
mov bl, [eax] ;get the character
@@ -296,9 +297,13 @@ very_end:
296
297
;mov ecx, [ecx + 4]
298
;mov ecx, [ecx] ;
299
-
300
- ;PRINTF32 `SFARSIT:%s:SFARSIT\n\x0`,ecx
301
+ ;push eax
+ ;push ecx
302
+ ;call iocla_atoi
303
+ ;PRINTF32 `SFARSIT:%d:SFARSIT\n\x0`,eax
304
+ ;add esp, 0x4
305
+ ;pop eax
306
+
307
pop edx
308
pop ecx
309
pop ebx
0 commit comments