Results 1 to 2 of 2

Thread: how can i use (LOCK)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    21

    how can i use (LOCK)

    Hi
    how are u every boudy

    i tried to use the prefix ( LOCK)
    but the assembler gave me this error
    (instruction prefix not allowed)


    how can i use this inst.

    if u can
    Plz. give the source code for this inst.
    ThiS Is Me
    my email
    [email protected]

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    LOCK can only be used with these instructions:
    BT, BTS, BTR, BTC mem, reg/imm
    XCHG reg, mem
    XCHG mem, reg
    ADD, OR, ADC, SBB, AND, SUB, XOR mem, reg/imm
    NOT, NEG, INC, DEC mem
    and only with system privileges (that is, a windows or linux app can't use it).
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width