[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub2 code

From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: grub2 code
Date: Mon, 03 Feb 2014 17:51:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.2.0

On 03.02.2014 12:57, Colin Watson wrote:
>         movw    $(GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR + 0x17), %bx
>         andb    $3, (%bx)
andb $3, (%bx) is equivalent to C code:
*(grub_uint8_t *)bx &= 3;
andb modifies the value at (%bx). You probably meant to use testb which
has same flag semantics but doesn't change operands

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]