The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: jack on March 15, 2006, 02:27:44 AM

Title: need help with tasm code
Post by: jack on March 15, 2006, 02:27:44 AM
I am studying some code written in Borlands tasm, here's a small snippet.

join_: @cld ; Auto-increment index reg.s
@LDS  rsi, [srcBCD] ; Load
@LES  rdi, [dstBCD] ;   pointers
        mov   rbx, [BCDsz]      ; Get byte size of BCD
dec   rbx ; Handy constant

my questions are
1. why @cld, @lds and @les instead of just plain cld, lds and les
2. what about the registers, rsi, rdi, rbx, are they esi, edi, ebx?
thanks in advance.
Title: Re: need help with tasm code
Post by: hutch-- on March 15, 2006, 02:30:57 AM
I didn't know there was a 64 bit version of TASM available. Are you sure its TASM code and not something else ?
Title: Re: need help with tasm code
Post by: jack on March 15, 2006, 03:05:15 AM
no this very old code, btw after scouring through the doc files found out that "@" is used to call a macro, (I think), please disregard this post. :red
<edit> sorry for a stupid post, my appologies, after reading the include files i found out that @cld and the rest are macros, and the registers are equates
so it could be compiled as 16 or 32 bit, that is "rbx" is either bx or ebx"
</edit>
Title: Re: need help with tasm code
Post by: Ghirai on March 15, 2006, 09:32:57 PM
More like 64b.