Skip to main content

Questions tagged [assembly]

Assembly language questions. Please tag the processor and/or the instruction set you are using, as well as the assembler, a valid set should be like this: ([assembly] [x86] [gnu-assembler] or [att]). Use the [.net-assembly] tag instead for .NET assemblies, [cil] for .NET assembly language, [wasm] for web assembly, and for Java bytecode, use the tag java-bytecode-asm instead.

assembly
-1 votes
0 answers
24 views

How to run an LC-3 Assembly program

I am creating an LC-3 Assembly program. I have managed to assemble it into an obj file. I'm not sure what linker to use / what arguments to use from here. Any help would be much appreciated. I tried ...
NonzeroCornet34's user avatar
0 votes
0 answers
49 views

How can I get this STDIN to work in GAS Assembler running on Linux?

I am new to Assembler and am currently reading a book about it by Jonathan Bartlett called 'Learn to Program with Assembly'. On pages 160-1 he gives the following sample program to demonstrate the use ...
Digital Samizdat's user avatar
0 votes
0 answers
32 views

Is there a library to reassemble and rebuild Windows PE binary? [closed]

I want to disassemble a x64 PE binary, add my own inline assembly code somewhere inside the .text section (or any other executable section), and then assemble the binary back and expect it to work. I'...
abdul's user avatar
  • 13
0 votes
0 answers
30 views

Why is my assembly code giving extra output? [duplicate]

Before I start, it's important to say I am a complete beginner to Assembly, so I might be missing something very obvious. I was trying to make an Assembly program where it prints the following output ...
Spyros's user avatar
  • 101
1 vote
0 answers
48 views

Assembly jump instructions don't seem to work

bits 64 default rel section .data fmt db "%s", 0xd, 0xa, 0 err db "Correct usage: echo <string>" section .text extern printf extern ExitProcess global ...
Angad Warhadpande's user avatar
0 votes
2 answers
56 views

RISC V : I don't understand what the GNU assembler does with labels in the .data segment

I am making my own risc V core as a personal project using the RV32I ISA, I am using a Harvard memory architecture meaning I have a program memory that starts at address 0x0 and a separate data memory ...
user25773352's user avatar
1 vote
1 answer
40 views

how to use speaker (msdos) in new computers? [closed]

I'm programming in assembly, and want to use the speaker, I can do that with out 43, al and out 61, al, this in Dosbox. But i've a notebook with DOS 6.22 in hd, all the program works well, but the ...
Mario Augusto's user avatar
0 votes
1 answer
56 views

Updating an element in array in AVR Assembly

so i'm trying to update an element in array which get used to print the value inside it but after updating the array, what gets printed is still same, the printer used array buffer and i wanna get the ...
user25562504's user avatar
1 vote
1 answer
56 views

What are the binary representations for the flags used in the Linux open() syscall?

I am learning NASM and currently unsure what values should be used for the flags argument for open() as shown in the man page. I'm mainly asking this for clarification so I don't mess something up, ...
dundermouse's user avatar
-2 votes
1 answer
38 views

Code in assembly printing alphabets twice instead of next line. (emu8086)

My code in assembly emu 8086 displays alphabets in lower case but it displays them twice instead of displaying them in new line a single time each. Ive tried everything from AI etc but could not find ...
Moeez Ahmad's user avatar
0 votes
1 answer
30 views

Order in which instructions are printed/executed

Why the output is in diffrent order than it is declared? Shouldnt the output be in this order? aaaa bbbb cccc Instead it is: I assume the issue is in assigning "bbb" value to the text ...
RudyChemik's user avatar
-5 votes
0 answers
82 views

x86 mulss result is diffrent over time [closed]

I am trying to make C++ neural network library and I noticed, that sometimes model with same inputs and same parameter values drastically changes output for no reason. I have no idea why it happens, ...
ZDibLO's user avatar
  • 5
-2 votes
1 answer
81 views

How can we read program counter through assembly code in 68k microcontroller

Can anybody please explain how program counter can be read using assembly instruction in MC68000 controller. Following instruction set gave error - undefined addressing mode MOVE.L %PC, %D0 Also ...
V C Prathap's user avatar
0 votes
0 answers
21 views

how to add an additional dll to an exe file and force it to use

I have an exe file in which I want to make some corrections to the binary code, but I want to do this not just by editing bytes but by using an additional dll, which should patch the current ...
VeryDobro's user avatar
0 votes
1 answer
37 views

How to read the Marie Programme table? [closed]

I want to know how i can read the Marie Simulator table. Im still a beginner to this so can someone explains how the output works in this following example code? Load x add y store z halt x, hex 008E ...
Pivot112's user avatar

15 30 50 per page