Author Topic: [Bug] rep instruction  (Read 2077 times)

Offline shaynox

  • Full Member
  • **
  • Posts: 117
  • Country: fr
  • use Windows 10 x64
[Bug] rep instruction
« on: June 14, 2015, 06:40:26 PM »
I found a bug, nasm don't detect this error (not mov):
Code: [Select]
            mov     rcx, 1
            rep     vmovups     ymm0, ymm0

In manual of intel it's false but even so by curiosity I run this block of code and it crash (unfortunately x) )
« Last Edit: June 14, 2015, 06:43:14 PM by shaynox »
Basic asm standard:
reg(lowercase) - instruction(lowercase) -> instruction     dest, src

Offline encryptor256

  • Full Member
  • **
  • Posts: 250
  • Country: lv
  • Win64 .
    • On Youtube: encryptor256
Re: [Bug] rep instruction
« Reply #1 on: June 14, 2015, 07:41:49 PM »
I found a bug, nasm don't detect this error (not mov):
Code: [Select]
            mov     rcx, 1
            rep     vmovups     ymm0, ymm0

In manual of intel it's false but even so by curiosity I run this block of code and it crash (unfortunately x) )

Nice catch, shaynox!

I wouldn't call it: "error".
REP is a prefix and looks like - is not affecting rest of the instruction bits n bytes.
But that's right: "nasm don't detect".
But maybe you can find some applications for this permission to add REP prefixes.

I run this block of code and it crash (unfortunately x) )

Interesting... Then what kind of result you were expecting?
Encryptor256's Investigation \ Research Department.

Offline shaynox

  • Full Member
  • **
  • Posts: 117
  • Country: fr
  • use Windows 10 x64
Re: [Bug] rep instruction
« Reply #2 on: June 14, 2015, 07:44:02 PM »
Thanks ^^

Nothing, it just crash, I don't know what kind of error, windows ask to me if I want to debug but no time for that

And if I run this instruction on my OS, I think than it will make a reset of CPU.
« Last Edit: June 14, 2015, 07:48:17 PM by shaynox »
Basic asm standard:
reg(lowercase) - instruction(lowercase) -> instruction     dest, src