Coder Social home page Coder Social logo

reinanhs / assembly-curso Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.41 MB

Assembly ou linguagem de montagem é uma notação legível por humanos para o código de máquina que uma arquitetura de computador específica usa, utilizada para programar códigos entendidos por dispositivos computacionais, como microprocessadores e microcontroladores.

Assembly 100.00%

assembly-curso's Introduction

Assembly-curso

Assembly ou linguagem de montagem é uma notação legível por humanos para o código de máquina que uma arquitetura de computador específica usa, utilizada para programar códigos entendidos por dispositivos computacionais, como microprocessadores e microcontroladores.

Registers

registers are a part of the processor that temporarily holds memory. In the x86_64 architecture, registers hold 64 bits.

This means each register can hold the values:

Unsigned: 0 - 18,446,744,073,709,551,612 Signed: -9,223,372,036,854,775,808 - 9,223,372,036,854,775,808

minima theme preview

System Call

A System call, or a syscall, is when a program requests a service from the Kernel

System calls will differ por operating system because defferent operating systems use different Kernels.

All syscalls have an ID associated with them (a numbre ).

Syscalls also take arguments, meaning, a list of inputs

System call Inputs by Register

minima theme preview

System Call List

minima theme preview

Sys_write

minima theme preview

minima theme preview

minima theme preview

Suppose we want to write "Hello, World!\n" to the screen...

minima theme preview

minima theme preview

Sys_exit

minima theme preview

Sections

All x86_64 assembly files have three sections, the ".data" section, the ".bss" section, and the ".text" section.

The data section is where all data is defined before compilation.

the bss section is where data is allocated for future use.

the text section is where the actual code goes.

minima theme preview

Labels

A "label" is used to label a part of code.

Upon compilation, the compiler will calculate the location in which the label will sit in memory.

Any time the name of the label is used afterwards, that name is replaced by the location in memory by compiler.

minima theme preview

assembly-curso's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.