Skip to main content

Questions tagged [assembly]

Tag for questions regarding the wide family of assembly languages both low and high level. It should be used for both the languages themselves as well as their assemblers.

-1votes
0answers
12views

8259A PIC programming issue?

I want to write my own minimal operating system, and started off with a keyboard driver based on the tutorial of Frank Rosner (https://dev.to/frosnerd/writing-my-own-keyboard-driver-16kh). Since this ...
Max Herrmann's user avatar
1vote
0answers
33views

What is the difference between the ELF Visibility Values STV_INTERNAL and STV_HIDDEN?

I was trying to understand Visibility values in ELF file , and I couldn't Understand the difference between STV_HIDDEN and STV_INTERNAL . After some reseach I found that this may be related to how ...
AbdAllah Talaat's user avatar
0votes
1answer
69views

GNU assembler alternatives

I am trying to build my system from scratch, since I really like the idea of atomicity of each program in unix-like approach, I would like to preserve it as much as possible in my build. Since GNU ...
Даниил Носиков's user avatar
0votes
1answer
50views

Checking the build of each executable, disassembling all the .o files. How to hunt down the xz kind of backdoor elsewhere in Linux distributions? [closed]

You might have read about the backdoor that was released with the xz command (versions 5.6.0 and 5.6.1). A malevolent committer gained the trust of his maintainer, and achieved to insert at build time ...
Marc Le Bihan's user avatar
4votes
1answer
190views

Audio playback from assembly language in Unix?

Looking for a simple audio interface for Unix For fun, I'm learning x86 assembly language by porting an old game. The trickiest part is finding a way to play simple sounds (square waves, mostly). The ...
hackerb9's user avatar
2votes
1answer
381views

Why does the Linux kernel have its own bootloader

I am trying to work my way through Linux kernel code, and in this file there seems to be a full blown bootloader that bios is expected to run. I was under the impression that generally, grub will be ...
Maslin's user avatar
1vote
0answers
222views

perf instruction count

so i've been playing with perf and assembly i have the following program: .intel_syntax noprefix .global _start _start: mov cl, 2 mov ebx, 0b101 shr ebx, cl and bl, 1 je do_stuff ...
Joao Luca's user avatar
0votes
0answers
103views

Linking problem in assembly code

Here is my assembly code: .section .data mystring: .asciz "Hello world\n" .section .text .globl _start _start: pushl $0 pushl $mystring call printf pushl $0 call exit ...
Swapnil's user avatar
0votes
0answers
43views

Why does AIX on Power require that the svc instruction must be preceded by an unconditional branch or a CR instruction?

The IBM AIX Documentation for the svc (Supervisor Call) instruction has a note that states To ensure correct operation, an svc instruction must be preceded by an unconditional branch or a CR ...
gorignak's user avatar
0votes
1answer
181views

Terminal syscalls in Assembly

I would like to write a chess engine for Linux. It will be in pure X64 Assembly language without any C/C++ or any other high level languages external libraries. It will run in full screen text/console/...
Danny Cohen's user avatar
1vote
1answer
75views

How do unix systems call into an application?

I am currently implementing a C runtime library for the Arm64 platform, and I am unsure which assumptions I can make about the environment at the precise point that the application is executed (what ...
lte678's user avatar
0votes
1answer
41views

How can I en- and decompress a bootable image?

I have a bootable kernel image, that I had created with MinGW Toolchain's that available for Microsoft Windows 11. The Project is in size tiny, but I would know: "How can I shrink the image, if ...
Jens's user avatar
0votes
2answers
1kviews

Assembly code that print to screen without syscall

Is it possible, in Linux, to write an x86 assembly program that print a character to the screen (standard output) without the use of any system call? I think that it is not possible because, in x86 ...
Bender's user avatar
0votes
1answer
69views

as .*s does not work like gcc .*c

when i run gcc -c *.c, it runs:- gcc -c file1.c -o file1.o gcc -c file2.c -o file2.o gcc -c file3.c -o file3.o ... but as *.s runs:- as file1.s -o a.out as file2.s -o a.out as file3.s -o a.out ... ...
user135142's user avatar
0votes
2answers
537views

A better disassembler than `objdump -d`?

I notice when using objdump -d, it outputs the assembly (in either Intel syntax or AT&T syntax), the binary opcode encodings and the address numbers. In my case, I just want the disassembler to ...
user135142's user avatar

153050per page
close