FaridGul / Assembly_project_Calculator

Calculator application with assembly language which having multiple operations like Sum, div, multiplication and negation
2 stars 0 forks source link

Farid_Gul_Shakir_Folder #6

Open FaridGul opened 8 months ago

FaridGul commented 8 months ago

I will upload all my files and informations here

FaridGul commented 8 months ago

intro_to_addition_on_linux_in_assembly.docx assembly_commands#4_weak_farid_gul.docx Introduction_to_assebly.pdf assembly_2_lecture.pdf

FaridGul commented 8 months ago

السلام علیکم ورحمت الله وبرکاته! هیله ده ټول به روغ او جوړ وی کله چې هم فایل پورته کوي نو دهغه سره pdf فایل خامخا پورته کوي ترځو بیا ستاسو خپل معلومات خوندي وي او هیله ده معنالرونکی شیان پورته کوی هسې په بیځایه شیانو خپل د فایل سایز مه ډیروی مننه

FaridGul commented 8 months ago

To add two numbers in assembly language on Linux, you can use the x86 architecture and the NASM (Netwide Assembler) syntax. Steps: 1.Take two input values and store them in memory. 2.Add the two values together using appropriate assembly instructions. 3.Store the result in a designated memory location or register.

how to store numbers in memory? In assembly language, we can store numbers in various ways depending on the size and type of the number. Here are a few common methods for storing numbers in Linux assembly:

Immediate Value: we can directly store small constant values directly in the instruction itself. what is the instruction that is for later. Register: You can store numbers in registers, which are small storage locations within the processor. Common registers include EAX, EBX, ECX, EDX, etc... Memory: You can store numbers in memory locations by defining variables in the data section You can then access these variables using their memory addresses. Stack: You can push numbers onto the stack and access them using the stack pointer (ESP) Please study these topics carefully and learn each method carefully so that we will use the same methods in our project and understand the concept of this topics well. if you have any problem, please share with me. that was our project main points because the other operations like subtraction and multiplication are with the same concepts.

Thanks!