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.1k views
1 answer
    Is it true that the x86 ASM "LOCK" command prefix causes all cores to freeze while the instruction following "LOCK" ... if this is true or not. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Starting with Pentium Pro (P6 microarchitecture), Intel redesigned it's microprocessors and used internal RISC core under ... , SSE4 and others. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am currently editing several macros consisting of MASM code. They all look similar to this: Primary MACRO Key ... numbers in this case? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm very new to MIPS and this has me completely baffled. I made a program to convert bases and it works ... like to input another number? " See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have the following program: SECTION .text main: mov ebx, 10 mov ecx, 50 repeat: inc ebx loop repeat mov eax, ... then returns 0. Why is that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    To give a little bit of background, I wanted to study how x86 instructions are encoded/decoded manually. I came ... to them in the manuals. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
952 views
1 answer
    Explains that unless we specify a size operator (such as byte or dword) when adding an immediate value to a ... version 2.11.08 Architecture x86 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
986 views
1 answer
    I assume simple spinlock that does not go to OS waiting for the purposes of this question. I see that simple ... to cmpxchg, not in general. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    When compiling the following instruction: movl 4(%ebp), 8(%ebp) I got: too many memory reference. What's wrong with it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    At my 64bit Intel machine following code works: mov rdi, 1 << 40 add r10, rdi and this quite ... : signed dword immediate exceeds bounds See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm trying to print a single character or a number using NASM, targeting an x86 GNU/Linux architecture. Here's the ... . What am I doing wrong? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    When I first got a Haswell processor I tried implementing FMA to determine the Mandelbrot set. The main algorithm ... , 32(%rdi) vzeroupper ret See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    On x64, loading from a 64-bit absolute address (that is, dereferencing a 64-bit immediate) can be done by movabs ... movabs. What am I missing? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
946 views
1 answer
    So I want to add padding in the bootsector. Let's say, there is currently just an endless loop in there: ... is stable enough for AT&T syntax. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    On x64, does each PUSH instruction push a multiple of 8 bytes? If not, how much does it push? Also ... does each function parameter consume? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm currently looking to find an answer to the above question. So far I found people saying, that the word ... and enlighten me on this topic. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
901 views
1 answer
    I'm trying to learn BNF and attempting to assemble some Z80 ASM code. Since I'm new to both fields, my ... am going wrong would be excellent. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    What exactly does this instruction do? movzbl 0x01(%eax,%ecx), %eax See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Does rax get offset plus the address of this instruction, or the next? From a microcode point of view it ... answer was the next instruction. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    what is the function of NOPL in x86 machine? It feels like it doesn't do anything, but why is it always in the assembly code? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm looking for the implementation of pow(real, real) in x86 Assembly. Also I'd like to understand how the algorithm works. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Test is on 32 bit x86 Linux with gcc 4.6.3 When using gcc to compile a C program and using readelf to ... inside ELF compiled from C program? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    First I am a little bit confused with the differences between movq and movabsq, my text book says: The ... designed to make things harder? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am reading about x86-64 (and assembly in general) through the book "computer systems a programmer's ... compiling a short C function. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm writing a function in x86 assembly that should be callable from c code, and I'm wondering which registers ... whatever pleases me in them? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    How do I write an instruction which will have the address a label is referencing put into a register? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am having a very difficult time tracing the assembly code for the following binary bomb (An assignment from ... ret End of assembler dump. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm trying to push a 64bit integer but when assembling NASM seems to want to see it as a DWORD not a ... CALL RAX pop RAX POPFQ RETN See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...