Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged assembly

0 votes
1.0k views
1 answer
    As far as I know, the main difference in runtime ordering in a processor with respect to rdtsc and rdtscp instruction ... ... ... rdtscp lfence See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    admittedly this is some homework help, but a specific problem I can't seem to get past. I'm trying to write a ... EDX ;restore EDX pop EBP ret See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Intel pushed microcode update to fix error called "Jump Conditional Code (JCC) Erratum". The update microcode ... separately from other JCC? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm on IvyBridge, I wrote the following simple program to measure the latency of mov: section .bss align 64 ... mov latency is still 1 cycle) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm doing some x64 assembly with Visual C++ 2010 and masm ('fast call' calling convention). So let's say I ... my compiler, I'm just learning. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Does the LEA instruction support negative displacement? mov rax, 1 lea rsi, [rsp - rax] When I use the above ... you in advance for your help! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    EDIT I tested release in 32 bit, and the code was compact. Therefore the below is a 64 bit issue. I'm ... bits return (crc ^ 0xffffffff); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    In x86 assembly language, is there any way to obtain the upper half of the EAX register? I know that the AX ... of eax into bx as well. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm exploring leaf 0x02 of the cpuid instruction and came up with a few questions. There is a table in the ... is the TLB cache core private? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am looking for some preprocessor functionality in nasm that would allow having one source code for both x86 ... same for both architectures. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    What's the difference between the assembly instructions LOOP, LOOPE and LOOPNE? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    After looking at a table of registers in the x86/x64 architecture, I noticed that there's a whole section of ... in order to manipulate them? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    In 32-bit mode Intel solves the VEX prefix vs LDS/LES conflict by inverting the high bits of register extension, ... Which of them is correct? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Which one is faster - val = val*10; or val = (val<<3) + (val<<2); How many clock cycles does imul take when compared to shift instruction? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
989 views
1 answer
    I need to put a 32-bit absolute address into a register on AArch64. (e.g. an MMIO address, not PC-relative). ... , but I'd rather avoid that. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I keep reading that in order for one to perform integer/floating point division on a register, the register(s) ... it technically doesn't 'ret' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    The pre-built binaries for the F# PowerPack are compiled against the .NET 2.0 runtime. If I have a .NET 4.0 ... source for the .NET 4 runtime? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    edi is argc, rsi is argv 0x0000000000400535 <+8>: mov %edi,-0x4(%rbp) 0x0000000000400538 <+11>: mov %rsi,-0x10(%rbp ... r10, [r9+0x10] jmp r10 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Let's say I want to reverse the byte order of a very large byte array. I can do this the slow way using ... order in an XMM or YMM register? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    In the book "THE INTEL MICROPROCESSORS" of Barry B. Brey, it is written that MOV AH, 1 is not allowed in 64 ... the problem with MOV AH, 1 ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    For x86-64 architecture, is there an instruction that can load data at a given memory address to the cache? ... like a cache line identifier)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm currently trying to learn assembly language (and the effects of different compiler options) by analyzing simple C ... local array in a loop. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am writhing code with C++ for a calculator ,but it display ead results with assembly,I want to store the value ... find it with C language ... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I wonder if STMDB SP!, {R0-R8} is an atomic operation in ARM(v7), because it looks quite complex to ... processor continues with R0-R4? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm trying to learn MIPS assembly language by myself using MARS simulator. For didactic reasons I'm limiting myself ... How? Thanks in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have the following doubts: As we know System V x86-64 ABI gives us about a fixed-size area (128 bytes) in ... -1024], rcx add rsp, 1024 ret See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
985 views
1 answer
    I'm a newbie to learning OS development. From the book I read, it said that boot loader will copy first MBR into ... but I can't see the detail. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    From https://www.felixcloutier.com/x86/div: ... temp ← AX / SRC; IF temp > FFH THEN #DE; (* Divide error ... over FFH Do I miss something here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...