Re: meanings of code in MASM




----- Original Message -----
From: "Rod Pemberton" <spamtrap@xxxxxxxxxx>
Newsgroups: comp.lang.asm.x86
Sent: Thursday, January 12, 2006 7:31 PM
Subject: Re: meanings of code in MASM


I see at least one error already. After the call to ror(), the upper
portion of eax doesn't get reset...

> for (ch=txlen;ch;ch--) // shtloop1
> {
> eax=(eax&0xFF00FF00)|(*(unsigned char *)edi);
> ax=eax&0x0000FFFF;
> ror(&ax,&cl);
eax=(eax&0xFFFF0000)|ax; // missing
> wdest|=ax;
> edi++;
> }

Rod Pemberton

.



Relevant Pages

  • Re: failed ljmp in linear addressing mode
    ... I think it probably resets the instant that you turn off paging. ... Once you are executing from the new area, you reset your ... The last statment generates the same "call *%eax" as in my code. ... movl %cr0, %eax ...
    (Linux-Kernel)
  • FRASERS. Charles Bronson cd/23rd Sept
    ... A superb, 10x8, half length, colour, studio photograph of Bronson, pictured with two revolvers. ... Signed across the upper right portion of the image in bold blue felt pen ink. ...
    (uk.rec.competitions)
  • Re: VIO windows opening in same place
    ... the same spot (upper right hand corner). ... How to reset the configuration so they open in different places? ...
    (comp.os.os2.misc)
  • Re: screensavers
    ... A calendar in the upper right portion of the desktop is an option. ... "richard" wrote in message ...
    (microsoft.public.windowsxp.basics)
  • Re: screensavers
    ... > A calendar in the upper right portion of the desktop is an option. ... >> not carry ads or spyware, ...
    (microsoft.public.windowsxp.basics)