Search for the values as usual, no need to do the 2x+1 conversion. Select "RPG VX Type" from the dropdown box.ħ. everything is back to what it was, so exitĦ. Mov ,eax //write the new value into the old value Or eax,edx //add the bits of the original value Shl eax,1 //shift left by 1 bit (multiply by 2) Mov eax,ecx //eax gets the user input value Mov edx, //edx now contains the original value at this point edx contains the address to write the value to function declared as: stdcall void ConvertBackRoutine(int i, unsigned char *output) The convert back routine should hold a routine that converts the given integer back to a row of bytes (e.g when the user wats to write a new value) Shr eax,1 //shift right by 1 bit (divide by 2) Mov eax, //second fun fact, addressing with 32-bit registers doesn't work in 64-bit, it becomes a 64-bit automatically (most of the time) at this point ecx contains the address where the bytes are stored Note: Keep in mind that this routine can be called by multiple threads at the same time. function declared as: stdcall int ConvertRoutine(unsigned char *input) The convert routine should hold a routine that converts the data to an nteger (in eax)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |