News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

need help with tasm code

Started by jack, March 15, 2006, 02:27:44 AM

Previous topic - Next topic

jack

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.

hutch--

I didn't know there was a 64 bit version of TASM available. Are you sure its TASM code and not something else ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jack

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>

Ghirai

MASM32 Project/RadASM mirror - http://ghirai.com/hutch/mmi.html