Skip to content

Commit efe2886

Browse files
90pct -MAX
1 parent 93513cd commit efe2886

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ast.asm

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ iocla_atoi: ;change string to number
3535
jnz atoi_loop ;if it is not a minus sign just do the rest as usual
3636
mov edx, 1
3737
mov [isNegativeAtoi], edx ;change global variable
38+
inc eax ;get rid of the minus
3839

3940
atoi_loop:
4041
mov bl, [eax] ;get the character
@@ -296,9 +297,13 @@ very_end:
296297
;mov ecx, [ecx + 4]
297298
;mov ecx, [ecx] ;
298299
299-
300-
;PRINTF32 `SFARSIT:%s:SFARSIT\n\x0`,ecx
301-
300+
;push eax
301+
;push ecx
302+
;call iocla_atoi
303+
;PRINTF32 `SFARSIT:%d:SFARSIT\n\x0`,eax
304+
;add esp, 0x4
305+
;pop eax
306+
302307
pop edx
303308
pop ecx
304309
pop ebx

0 commit comments

Comments
 (0)