Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: assembly

Linux

Why doesn’t this assembly HTTP server work?

admin May 8, 2021

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 …

assemblylinuxsystem-callsx86
Linux

Compact shellcode to print a 0-terminated string pointed-to by a register, given puts or printf at known absolute addresses?

admin April 24, 2021

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 “…

assemblylinuxmicro-optimizationshellcodex86-64
Linux

Arduino Uno blink onboard LED by an assembly code gives error Found no label/variable/constant named PD0

admin March 6, 2021

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 ; …

arduinoarduino-unoassemblyavrlinux
Linux

Finding the number of bytes of entered string at runtime

admin March 4, 2021

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 …

assemblylinuxsystem-callsx86
Linux

Why gcc generates a PLT when it is apparently not needed?

admin January 3, 2021

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-…

assemblydynamic-linkingelflinuxx86
Linux

Troubles with the compilation of the assembler

admin January 9, 2020

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 …

assemblylinuxx86
Linux

How to compile shared file with .bss section using nasm

admin December 24, 2019

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 …

assemblylinuxnasmubuntu
Arrays

What is an undefined vector element represented as in memory?

admin December 9, 2019

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 …

arraysassemblycinitialization
Linux

How to ‘silently’ get user input from a terminal on Linux?

admin November 9, 2019

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 …

assemblyinputlinuxnasmtty
Linux

NASM assembler infinite loop with cx register

admin August 6, 2019

section .data: msg1: db “Hello 10 times!” msglen1: equ $-msg1 section .text: global _initial: global _start: global _end: _initial: mov cx,10 _start: …

assemblylinuxnasmsystem-callsx86

Posts navigation

1 2 … 9 Next
Privacy Policy