flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Need scan_num macro |
Author |
|
vid 13 Aug 2006, 11:09
why macro? i believe you want procedure
|
|||
13 Aug 2006, 11:09 |
|
cod3b453 13 Aug 2006, 19:22
Well heres a simple example:
Code: prompt rb 8 ; prompt string here, null terminated str2lng: push ax bx xor ax,ax xor bx,bx xor cx,cx mov si,prompt mov al,[si] @@: sub al,'0' add cx,ax inc si mov al,[si] cmp al,0 je @f shl cx,1 mov bx,cx shl cx,2 add cx,bx jmp @b @@: pop bx ax ret HTH |
|||
13 Aug 2006, 19:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.