Subj : Re: What is being referenced here? To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Mon Oct 18 2004 08:35 am Stephen Jarowski wrote: >Two questions (before I attempt to understand the code myself by >debugging): > >What does the coder intend to happen with the call to F_PADD@ in >this code: > > mov dx, [bp-00Ah] > mov ax, [bp-00Ch] > mov cx, [bp+00Ch] > mov bx, [bp+00Ah] > call far ptr F_PADD@ > mov [bp-006h], dx > mov [bp-008h], ax He's going to add cx:bx to dx:ax with the result in dx:ax >And what does he intend to happen with the call to F_PADA@ here: > > xor cx, cx > mov bx, 4000h > mov dx, ss > lea ax, [bp-00Ch] > call far ptr F_PADA@ Pretty close to the above. He's adding 0000:4000 to ss:[bp-12] In the first one, he's passing 2 32bit values which will be added and normalized and returned. In the second, he's passing 1 32bit value, and 1 address. I think the return will be that the address pointed to by the address will be adjusted by the 32bit value. BTW, a decent disassembler should translate all that into C for you. .