It is necessary for example from F0 1A (two-byte code) to get an array
0F 00 01 0А I do not know how to implement this in TASM
It is necessary for example from F0 1A (two-byte code) to get an array
0F 00 01 0А I do not know how to implement this in TASM
For example, something like the following code (the initial number is in ax , the result is in eax ).
mov ecx, eax ;eax = 0000F01A ecx = 0000F01A and eax, 0000ff00H ; 0000F000 0000F01A shl eax, 8 ; 00F00000 0000F01A and ecx, 000000ffH ; 00F00000 0000001A or eax, ecx ; 00F0001A 0000001A mov ecx, eax ; 00F0001A 00F0001A shl eax, 4 ; 0F0001A0 00F0001A or eax, ecx ; 0FF001BA 00F0001A and eax, 0f0f0f0fH ; 0F00010A 00F0001A I used 9 lines and 2 registers :)
eax . So, as it seems to me, fewer gestures ... No, I lied, you are right: the first one and it will be reset. - HarrySource: https://ru.stackoverflow.com/questions/518786/
All Articles