G'day I'm trying to implement the Python divmod function in D w/ assembly. Should look something like this... ''' ulong divmod64(ulong a, ulong b, ulong quot, ulong rem) { asm { xor RDX, RDX; mov RAX, a; div b; mov quot, RAX; mov rem, RDX; } } ''' Without doubt this routine will fail. But would anyone have a way?