Thread: Conver Asm to c++ code

  1. #1
    Registered User
    Join Date
    Sep 2017
    Posts
    1

    Conver Asm to c++ code

    How it will look on with c++?

    Code:
    @@mask:
      dw $000F, $003F, $00FF, $03FF, $0FFF, $3FFF
    @@tail:
      xor     eax, eax
      cmp     ecx, 7
      jae     @@exit
      movzx   edx, word ptr [@@mask + ecx * 2 - 2]
      and     ebx, edx
      cmp     ebx, edx
      setz    al

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    It depends, as we have no idea what ebx holds.

    Is this exercise? I already know the answer, but I won't help you cheat at an assignment. Prove to us first that you are trying to solve it, and we will assist.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. conver int to string
    By kbantra in forum C Programming
    Replies: 4
    Last Post: 11-10-2014, 02:05 PM
  2. Replies: 5
    Last Post: 04-17-2013, 11:32 PM
  3. Replies: 2
    Last Post: 04-17-2013, 12:25 AM
  4. Conver long to 8 byte array and back to long
    By plopes in forum C Programming
    Replies: 3
    Last Post: 04-01-2009, 12:39 AM
  5. simple function to conver to lowercase
    By mwolfe38 in forum C Programming
    Replies: 6
    Last Post: 04-15-2006, 10:17 PM

Tags for this Thread