Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #31.8K
Ranked #4K
~18.7K People Reached
Favorite Forums
Favorite Tags

6 Posted Topics

Member Avatar for kww228

Hi, You may find this code useful. [code=asm] cvt_str2int_array: lea esi, [cvt_input] lea edi, [cvt_output] .big_loop: xor eax, eax ; accu xor ebx, ebx ; number xor ecx, ecx ; minus flag: 0 = positive, -1 = minus .next_chr: lodsb cmp al, 0 je .exit cmp al, '$' je .dollar …

Member Avatar for hamzah_3
0
12K
Member Avatar for khanyisani
Member Avatar for pgcoder
0
128
Member Avatar for nasmnoob

I think you correctly pass the value of EBX to the checkdigit function by placing it on the stack before the call. However, I am not sure of the standard calling convention used by the C compiler, but chances are that it is not cdecl (as for printf) and in …

Member Avatar for pgcoder
0
1K
Member Avatar for smoothe19

The problem is that you initialize ESI to the end of the array. ESI should be set to the beginning of the array.

Member Avatar for NotNull
0
4K
Member Avatar for luiseduardo14

There is nothing in line 29, but there is a typo in line 26. [CODE]mov 6ax, 0[/CODE] you probably meant [CODE]mov ax, 0[/CODE]

Member Avatar for NotNull
0
380
Member Avatar for Desi991

Here's a solution: [CODE]secs_to_hhmmss: lea esi, [hhmmss_const] lea edi, [hhmmss_output] mov eax, [hhmmss_input] cdq ; sign extend into edx div dword [esi] ; divide edx:eax by 3600 call .write_two_digits ; write HH mov al, ':' stosb ; write separator mov eax, edx ; load remainder into eax cdq ; sign …

Member Avatar for pgcoder
0
1K

The End.