About 7,630,000 results
Open links in new tab
  1. Add 2 numbers in assembly language and print the result

    _start: ; Load the first number (num1) into EAX mov eax, [num1]; Add the second number (num2) to EAX add eax, [num2] ; Store the result in the result variable (byte) mov [result], al ; Display the result on the screen ; For Linux, you can use the syscall to write to the console mov edx, 1 ; Message length mov ecx, result ; Message pointer mov ...

  2. c - Add two numbers in assembly - Stack Overflow

    Jul 19, 2018 · First of all you need to learn how to useprintf, for example by experimenting with some C programs. Then you need to learn how functions are called, what gets passed in registers (little to nothing) and what goes on the stack. I suggest you look at the generated code from some C programs to see how it is done.

  3. Assembly Language Programming for Beginners: 8-bit Addition

    Nov 2, 2023 · We presented the assembly language code for adding two 8-bit numbers, along with explanation and we gave an overview on how to use Keil uVision software. Finally, we discussed the applications, advantages and disadvantages of using assembly language.

  4. 8085 program to add two 8 bit numbers - GeeksforGeeks

    Sep 23, 2024 · In an 8085 microprocessor, a simple program to add two 8-bit numbers will load the two numbers into registers, perform the addition, and store the result in a register or memory.

  5. Add 2 numbers and print the result using Assembly x86

    Feb 15, 2015 · I'm a novice Assembly x86 Learner, and i want to add two numbers (5+5) and print the result on the screen. here is my code: mov eax, 5. mov ebx, 5. add eax, ebx. push eax. mov eax, 4 ; call the write syscall. mov ebx, 1 ; STDOUT. pop ecx ; Result. mov edx, 0x1. int 0x80. ; Exit. mov eax, 0x1. xor ebx, ebx. int 0x80.

  6. Add two 8-bit numbers in 8085 - Easy Electronics

    In this program, we are going to write an assembly language program to add two 8-bit numbers in the 8085 microprocessor with a program flow chart and explanation of the program.

  7. Add Two numbers in Assembly language · GitHub

    Feb 3, 2018 · Add Two numbers in Assembly language. GitHub Gist: instantly share code, notes, and snippets.

  8. 8086 Assembly Program for Addition of Two 8 bit Numbers - @ankurm

    Jun 17, 2015 · This blog post will walk you through a simple 8086 assembly program designed to add two 8-bit numbers. While seemingly basic, this example highlights fundamental concepts of assembly programming, register usage, and data manipulation.

  9. 8086 Assembly Program to Add Two 32 bit Numbers - @ankurm

    Jun 23, 2015 · This blog post details an 8086 assembly program that adds two 32-bit numbers. This example demonstrates handling multi-word arithmetic, showcasing the use of carry flags and conditional jumps for accurate results.

  10. Add two numbers - Assembly Language Examples and Tutorials

    Write a program to add two numbers. opr1 dw 1234h. opr2 dw 0002h. result dw 01 dup(?), '$' . mov ax,@data. mov ds,ax. mov ax,opr1. mov bx,opr2. clc. add ax,bx. mov di,offset result. mov [di], ax. mov ah,09h. mov dx,offset result. int 21h. mov ah,4ch. int 21h. end. Didn't find what you were looking for?

Refresh