flat assembler
Message board for the users of flat assembler.
Index
> Main > MMX convert text to byte value. |
| Author |
|
|
Roman 08 Sep 2026, 18:12
Code: ttt db '16' intV db 0 sub word [ttt],0x3030 movzx eax,byte [ttt] imul eax,10 add al,[ttt+1] mov [intV],al |
|||
|
|
revolution 08 Sep 2026, 18:30
Dor the limited set of two digit bcd inputs.
Code: mov ax,word[bcd] sub ax,'00' imul ax,0x10a mov [result],ah bcd db '16' result db ? |
|||
|
|
Roman 08 Sep 2026, 18:50
Quote:
Wrong result. |
|||
|
|
revolution 08 Sep 2026, 18:53
Wrong multiplier.
Code: mov ax,word[bcd] sub ax,'00' imul ax,0xa01 mov [result],ah bcd db '16' result db ? |
|||
|
|
Roman 08 Sep 2026, 19:12
Intel was supposed to do it this way AAD
Code: aad al,ah,0x30 ;= sub al,0x30 and sub ah,0x30 and p1*10+p2. p1=al and p2=ah |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.