assembly
How to convert a code in Assembly language to C code? [closed]
Converting this to C code doesn’t answer your actual question. A description of what the assembly is doing would be more helpful. The X and Z registers are actually two registers each, so they are two bytes long. Some instructions use the Z register as an address to the input. That is what is happening … Read more
How would you rewrite this python code efficiently in Assembly [closed]
Performance is accomplished via algorithms that do less work or spread the load, and sometimes by special features of assembly or some other language. Still, here you are doing a lot of searching, with nested for loops and once with .index inside the inner loop. With another approach to the algorithm, we can avoid all … Read more
The mouse pointer manipulating code [closed]
You have it rather the wrong way around. There is no direct hardware link between the mouse hardware and the mouse pointer – there must already software rendering the pointer in response to the mouse motion. If you wanted the pointer to behave differently that would simply be different software rather than another software layer. … Read more
Why C/C++ is slower than Assembly and other low level languages?
The amount of time required to execute the core of your program you’ve written is incredibly small. Figure that it consists of three or four assembly instructions, and at several gigahertz that will only require a couple of nanoseconds to run. That’s such a small amount of time that it’s vastly below the detection threshold … Read more