Inline assembly is not portable between platforms and architectures. It's also difficult to understand, maintain, and keep error-free.
Consider if an implementation using pure Pascal or compiler intrinsics would be more appropriate.