Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
8 replies
213 views

I have the following C code (an MWE): #include<time.h> void fun() { asm("arg1:"); struct timespec const a = { .tv_sec = 10, .tv_nsec = 0 }; asm("call_nanosleep:"); ...
user10732's user avatar
2 votes
1 answer
101 views

I have the following assembled but when ever I uncomment the jmp or je it fail with 11: Error: bad or irreducible absolute expression _start: mov $0x0e, %ah mov $'a', %al _loop: int $...
mx14slh's user avatar
  • 129
1 vote
0 answers
126 views

I am following an assembly tutorial where they use NASM. They manage to compare a register to a variable's address with cmp rcx, digitSpace, but how can I do the same with GAS? As you know this ...
mx14slh's user avatar
  • 129
3 votes
1 answer
98 views

I have the binary image of a bootloader which was written with some ancient assembler. I want to port the assembly code to GNU assembler (GAS). We speak about the X86/16-bit (real mode) world. This ...
user avatar
-2 votes
1 answer
179 views

I have implemented a basic FIFO data structure with its related functions/subroutines in a FIFO.s file and want to use them in the main function inside a main.c file; // FIFO.s .syntax unified .cpu ...
student signup's user avatar
2 votes
2 answers
168 views

After some package upgrade on my Ubuntu 24.04 I stumbled upon inability to build/install/work with almost any of golang packages. So, I'm trying to install staticcheck and get the following error: $ ...
milo's user avatar
  • 1,250
1 vote
0 answers
51 views

I want to use the same label name in different parts of my Assembly code instead of using a new, never-before-used label name; Is such a thing possible? For example: . . . Factorial: // A subroutine ...
student signup's user avatar
4 votes
1 answer
119 views

I want to rename (more like add an alias to) one or more registers for a specific part of my Assembly code using the .req directive and later on undo the renaming of said register(s) so that those ...
student signup's user avatar
1 vote
0 answers
46 views

I have pushl $2147487744 this is 0x80001000 gnu as gives mycc_cpp.s:27: Error: invalid instruction suffix for `push' I have tried pushq pushing hex no luck
pm100's user avatar
  • 50.7k
1 vote
1 answer
79 views

I assembled the following file with GAS, the GNU assembler: .extern foo .global bar .section .text bar: call foo ret In the object file it produced there is a relocation entry of type ...
mdjukan's user avatar
  • 173
1 vote
0 answers
99 views

I've been dabbling with writing a small OS in D lang but I'm crashing on boot. I've been debugging my main file and think that the issue is with gdt_flush which is called in gdt.d and defined in gdt.s....
clickerticker48's user avatar
3 votes
0 answers
86 views

Is there a way to have the GNU assembly process a source file that contains macros, expand them, and then output the expanded equivalent code in a form that could be assembled by as? Basically, I'm ...
Bri Bri's user avatar
  • 2,052
4 votes
1 answer
113 views

In this assembly file below, the macro jump_table should automagically create ... a jump table to consecutively numbered labels like jump_0, jump_1, ... jump_<n>. It seems there is no loop ...
EnzoR's user avatar
  • 3,500
1 vote
1 answer
127 views

What do the symbols mean in this assembly language statement: .size _start, . - _start I've searched and found quite a few identical examples and several variations but none explain what the ...
simgar's user avatar
  • 618
3 votes
0 answers
86 views

I'm trying to understand this assembly from a bare-metal project I've cloned from GitHub. .section .text._start _start: // Infinitely wait for events (aka "park the core"). ....
simgar's user avatar
  • 618

15 30 50 per page
1
2 3 4 5
73