Why doesn’t this assembly HTTP server work?
I came across arguably the smallest HTTP server in docker (written in assembly), and I would love to see it in action! I think they took the code from https://gist.github.com/DGivney/5917914 : section …
Start Learning to Code
I came across arguably the smallest HTTP server in docker (written in assembly), and I would love to see it in action! I think they took the code from https://gist.github.com/DGivney/5917914 : section …
Background: I am a beginner trying to understand how to golf assembly, in particular to solve an online challenge. EDIT: clarification: I want to print the value at the memory address of RDX. So “…
I have found an assembly code as follows blink.asm ; blink.asm ; Pin Constant Values ; PD0 – 0 ; PD1 – 1 ; PD2 – 2 ; PD3 – 3 ; PD4 – 4 ; PD5 – 5 ; PD6 – 6 ; PD7 – 7 ; PB0 – 8 ; PB1 – 9 ; PB2 – 10 ; …
I’m new at learning assembly x86. I have written a program that asks the user to enter a number and then checks if it’s even or odd and then print a message to display this information. The code works …
Consider this code: int foo(); int main() { foo(); while(1){} } int foo() is implemented in a shared object. Compiling this code with gcc -o main main.c -lfoo -nostdlib -m32 -O2 -e main –no-…
I copied the sample program on assembler and compiled it using gcc, but I got the following output: gcc hello.s -o hello1 /usr/bin/ld: /tmp/ccPs5dcq.o: relocation R_X86_64_32 against `.data’ can not …
I am trying to compile shared file from nasm I am using these commands: nasm -f elf64 -o asm/asm.o asm/asm.asm ld -shared -o asm/asm.so asm/asm.o -I/lib64/ld-linux-x86-64.so.2 after second one i got …
I’m currently studying C and I have a question in which I have to guess what values are in the memory. When I say, for example long var1[1243] = {10, 1, 0, -1, -10} and define this vector, the first 5 …
I need to get user input skipping every second consonant in it. So every second consonant should not be printed out (not just deleted in some process after hitting Enter). I’ve got a task from my …
section .data: msg1: db “Hello 10 times!” msglen1: equ $-msg1 section .text: global _initial: global _start: global _end: _initial: mov cx,10 _start: …