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
2.3k views
1 answer
    I am currently trying to write a code that takes in a string and outputs that same string with no spaces. ... program li $v0, 10 syscall #end See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I wanted to test if bitwise operations really are faster to execute than arithmetic operation. I thought they ... than the arithmetic operator. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    This is the code I have been using to implement extended multiplication of two 32-bit numbers. Is there a way ... mov ax, 0x4c00 int 0x21 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I am writing NASM assembly code, and have to do some indexed addressing. I have the index stored in $al, but x86 won' ... + char) -> bx pop ecx See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    Can anyone explain for me why the sign of the remainder is different in these cases? Is this an emulator bug or do ... = -2 remainder(AH) = -2 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    Is it possible to use the 8-bit registers (al, ah, bl, bh, r8b) in indexed addressing modes in x86-64? ... same answer as above: probably not. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    By looking at intel volume of instructions, I found this: 1) 88 /r MOV r/m8,r8 2) 8A /r MOV r8,r/m8 ... on what basis did NASM chosed the first? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I want to ping threads to all cores in two CPU socket, and write communications between the threads ... for-parallel-architectures/topic/700477 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    I have two small files that I want to compile in CMake for debugging it with CLion and GDB main.c int ... compile with a CMakeList.txt ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.3k views
1 answer
    LUI (load upper immediate) is used to build 32-bit constants and uses the U-type format. LUI places the ... a 32bits immediate to register? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    Please look at the following program, the error is invalid effective address calculation and i have mentioned that ... mov ax,0x4c00 int 0x21 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    The Intel manual says that: the syscall instruction is invalid for compatibility mode (32-bit) popa is invalid for ... (should be OS agnostic). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    From this question, What registers are preserved through a linux x86-64 function call, it says that the following ... what I may be missing. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.1k views
1 answer
    I'm trying to get a simple Hello world program in NASM to run. I want to print to the console without ... wrong? EDIT: Fixed calling convention See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    Is there no ability to have a 64 bit stack for ARMv8? I understand there is no push and pop instructions ... work when operating in AArch64. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    I just started messing around with assembly language and I tried to print the number 9 on console. Here is ... interrupt code should I use? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    It it safe to assume that x64 builds can use TZCNT without checking its support through cpu flags? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I'm new to Assembly and I know this is a fair easy question. I supposed to do unsigned integer addition for ... . Any help would be appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    In the third chapter of Computer System: A Programmer's Prespective, an example program is given when talking ... dealing with long integer. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    I have code example for multiplying two 16 bit numbers on 8086 and trying to update it for two 32 bit ... arbitrarily? Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I'm supposed to answer this question. After some research it says that add and sub have the same opcode and differ ... as addi rB, rA, -IMMED See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    I was trying to divide (Unsigned) 8A32F4D5 by C9A5 using emu8086 tool. I expected the quotient to be AF73H and ... MAIN The output in EMU8086: See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    I am new to nasm and I really want to learn how to store a number with user input. I can't get rid ... format call scanf ret Thanks in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    Want to define same local label in multiple functions: .text .globl main func: push %rbp mov %rsp, %rbp .a: ... . Do you have any clues? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I'm digging into left and right shift operations in x86 ASM, like shl eax, cl From IA-32 Intel Architecture ... explanation would help a lot! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm writing a DOS clone for a school project and I'm trying to read some sectors from a floppy drive (mainly ... that I've not posted here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I have some questions about the memory layout of a program in Linux. I know from various sources (I ... segmentation fault earlier at 0x804a000? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I learned to switch to protected mode with a simple DOS based bootloader. This loader loads kernel.bin into a ... ,4c00h ;Exit process int 21h 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

...