64-bit

64 bit Word VBA DEVMODE.dmDuplex returns 4

拟墨画扇 提交于 2020-08-06 05:31:12
问题 I am currently in the process of converting the VBA code from the old 32bit Office to 64bit Office. We have a printing functionality that allows the user to change the default printers setting from duplex to simplex and vice versa. I have gone though the majority of my code replacing Long with LongPTR and adding PtrSafe when declaring functions. The issue I am having is that when calling the CopyMemory function, the returned DEVMODE contains different values in 64 bit and 32 bit. See below:

can't compare user input with number, nasm elf64

笑着哭i 提交于 2020-07-31 04:30:03
问题 I swear I've read more than 20 pages today, from NASM's manual to Universities' guides to Wikipedia to everything in between but I just can't wrap my head around this, I wrote a single program to compare the user input with either a 0 or a 1 and then act based on that (I should probably use an array once I get the hang of them in Assembly), but this will do for now. Problem is, my checks never work , they always go straight to the err label, I looked at x86 NASM Assembly - Problems with Input

can't compare user input with number, nasm elf64

核能气质少年 提交于 2020-07-31 04:29:47
问题 I swear I've read more than 20 pages today, from NASM's manual to Universities' guides to Wikipedia to everything in between but I just can't wrap my head around this, I wrote a single program to compare the user input with either a 0 or a 1 and then act based on that (I should probably use an array once I get the hang of them in Assembly), but this will do for now. Problem is, my checks never work , they always go straight to the err label, I looked at x86 NASM Assembly - Problems with Input

SSE optimized emulation of 64-bit integers

我的未来我决定 提交于 2020-07-04 13:10:05
问题 For a hobby project I'm working on, I need to emulate certain 64-bit integer operations on a x86 CPU, and it needs to be fast . Currently, I'm doing this via MMX instructions, but that's really a pain to work with, because I have to flush the fp register state all the time (and because most MMX instructions deal with signed integers, and I need unsigned behavior). So I'm wondering if the SSE/optimization gurus here on SO can come up with a better implementation using SSE. The operations I