I want to write an assembly code (Mips) that divides a power of two, by a number without using recursive or loop or command div or divu.(examples: 1024/7 , 512/9) I need it's remainder and it's quotient too. I have tried a lot and have searched to find an algorithm but it didn't work. Some help please if you have any algorithm or code.