About 1,570,000 results
Open links in new tab
  1. x86 - Assembly Language - How to do Modulo? - Stack Overflow

    Nov 5, 2011 · Is there something like a modulo operator or instruction in x86 assembly?

  2. How to implement the mod operator in assembly - Stack Overflow

    8 I am learning about division in assembly language. According to the book I am learning from, the result of the idiv operation is placed in eax and the remainder in edx. An exercise in the …

  3. How to write modulus (% in C++) in assembly language

    In a typical assembly language, the integer divide instruction will also give you the remainder. In the case of remainder when dividing by 2, it's a lot easier to translate to a bit-wise AND with bit …

  4. Modulus in Assembly x86 - Stack Overflow

    May 13, 2017 · Modulus in x86 assembly can be obtained by dividing two numbers. You put the divident in some register, you execute some instruction supplying the divisor, and after the …

  5. assembly - How do I perform modulus on ARM7? - Stack Overflow

    Mar 1, 2019 · This is nice, because it allows you to perform modulus on declared constants (which you use for readability), and also to write expressions so that they are human-readable and …

  6. How to do the modulo operation in ARM assembly?

    Mar 21, 2017 · I'm trying to add the values in two registers, and modulo them by 8. So, in C code, it would be like this a = a + b; c = a % 8; how to do this above operation in ARM assembly.

  7. Modulo in Assembly x86 - Stack Overflow

    Dec 10, 2022 · Modulo operator is % or \ in most assemblers. The modulo operation represents the remainder after dividend is integer-divided by divisor. For instance when dividend is 13 and …

  8. assembly - How do computers find modulus? - Stack Overflow

    Mar 28, 2011 · I'm not sure what the hardware does, but in most instruction sets modulus and division are done using the same instruction. The division instruction is implemented such that …

  9. How to do an assemble-time modulus on constants in ARM …

    Nov 14, 2013 · How to do an assemble-time modulus on constants in ARM assembly language Asked 12 years, 1 month ago Modified 7 years, 7 months ago Viewed 8k times

  10. assembly - How does the GCC implementation of modulo (%) …

    I was trying to work out how to calculate modulo 10 in assembly so i compiled the following c code in gcc to see what it came up with. unsigned int i=999; unsigned int j=i%10; To my surprise I got...