Menu

#412 and op - byte qualifier

closed-fixed
nobody
Assembler (85)
5
2008-10-16
2008-10-16
Anonymous
No

Should the and op support a byte qualifier?

db 0x83, 0xE4, 0xF0
; $ ndisasm output
; 00000000 83E4F0 and sp,byte -0x10

and sp, BYTE -0x10
; $ ndisasm output
; 00000003 83E400 and sp,byte +0x0

;----------------------------------------------------------

and sp, -0x10
; $ ndisasm output
; 00000006 81E4F0FF and sp,0xfff0

Discussion

  • Nobody/Anonymous

    almost forgot..

    $ nasm -v
    NASM version 2.05rc4 compiled on Oct 14 2008

    $ uname -a
    Linux archie 2.6.27-ARCH #1 SMP PREEMPT Sun Oct 12 15:16:25 CEST 2008 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

    cheers! /robin

     
  • H. Peter Anvin

    H. Peter Anvin - 2008-10-16

    Good catch. I fixed this and tagged 2.05rc5.

     
  • H. Peter Anvin

    H. Peter Anvin - 2008-10-16

    This item has been resolved; the fix has been checked into git (http://repo.or.cz/w/nasm.git) and will be in the next release.
    You can usually also obtain a nightly snapshot at ftp://ftp.zytor.com/pub/nasm/snapshots/; the snapshot robot usually runs some time between 09:00 and 10:30 UTC.

     
  • H. Peter Anvin

    H. Peter Anvin - 2008-10-16
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB