Re(1): Any other assembly programmers here? Posted on May 26, 2025 at 01:18:38 PM by Craig G
Well, if you wanna be Top Gun, be a virtual Maverick, and say, "I feel the need... the need for speed", then you don't have a lot of choice.
However, Visual C++ does not allow inline 64-bit assembly. So you either make separate assembly code and call it from C++ or switch to a compiler that does have inline capability.
That said, I like Option Z, staying with Visual C++ and using Compiler Intrinsics.
PS: Since you understand assembly, there's a chance you might appreciate my previous best design in 32-bit architecture. Represent the queue and scores as 8 nybbles each in-register (wow) and handle server and receiver as AL and AH where we flip their positions as needed by way of a 4-bit roll, the roll the whole 32 bits by 4, ditto for the score reg. Then update server score at the low nybble of whichever reg, and you're done with the entire point.
Performance-wise, this design makes all them other sims look like The Beverly Hillbillies' jalopy. Replies: