Assembly Programming – Parte 1


Bom depois de muito tempo sem artigos estou de volta para começar uma série em assembly programming básico.

Assembly é a linguagem mais próxima dos 0’s e 1’s (que é a única coisa que o computador entende).
Em qualquer outra linguagem de programação o compiler tem o trabalho de traduzir seu código (high level) para assembly (low-level) e dai o assembler converte para 1’s e 0’s. então se você não tem a mínima ideia de como o computador processa cada instrução ou como pode o computador entender somente 1’s e 0’s eu recomendo o livro ” Computer Organization and Design ” by David A. Patterson e John L. Hennesy.

Nesse tutorial estaremos usando o simulador MIPS, que utiliza o processador do tipo RISC. Cada processador tem comandos diferentes na sua linguagem assembly. É por isso que se você escrever um programa assembly para MIPS, o mesmo não ira funcionar em um processador Intel ou AMD. Processadores Intel e AMD tem uma tabela de commandos muito similar e isso minimiza os problemas de compatibilidade entre eles.

Aonde eu usaria assembly ? Por ser uma linguagem low-level é extremamente rápida se utilizada de maneira correta. Assembly também é muito utilizado quando você quer se comunicar diretamente com o hardware do computador, por isso é utilizado também para criar drivers para devices. E se você ainda não esta convencido a aprender assembly, eu te digo que se você sempre imaginou como alguém pode criar um crack para uma aplicação… É utilizando uma técnica chamada disassembly, que simplesmente converte o .exe para assembly e assim você pode ver o que esta acontecendo na aplicação e descobrir como a aplicação utiliza aquele serial que você entrou na instalação.

No próximo artigo entraremos a fundo na syntax da linguagem.

Boa sorte a todos e não se esqueça de aprender como o computador processa instruções antes de ler a próxima parte.

Abraços

Sobre tomazeli

Developer passionate about technology C, Python, Java, C# Ver todos os artigos de tomazeli

8 respostas para “Assembly Programming – Parte 1

  • Thiago

    Olá, cadê a segunda parte do artigo? Gostei da iniciativa, tenho uma matéria chamada arquitetura e pouco literatura pra ler sobre o assunto, o professor usou como base o processador MIPS, na internet é penoso encontrar algo sobre o assunto.

  • boot manager missing windows 7

    My partner and I stumbled over here coming from a different web address and thought I might check things out.
    I like what I see so now i am following you. Look forward to looking at your web page again.

  • become a real estate agent

    After I originally left a comment I appear to have clicked
    on the -Notify me when new comments are added- checkbox and
    from now on every time a comment is added I receive 4 emails with the exact same comment.

    Perhaps there is a way you are able to remove me from that service?
    Cheers!

  • words with friends help

    Thanks for any other informative web site. The place else may
    just I am getting that kind of info written in such a
    perfect way? I have a venture that I’m just now working on, and I’ve
    been at the glance out for such information.

  • Trapezius Pain Icd 9 Code

    Hi! Do you know if they make any plugins to assist
    with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
    good success. If you know of any please share. Cheers!

  • minecraft download free

    Thank you a lot for sharing this with all folks you really realize what you are speaking approximately!
    Bookmarked. Please additionally seek advice from my site =).
    We may have a hyperlink exchange arrangement among us

  • webpage

    Colder or hotter interior temps could cause harm to
    the public who frequent the buildings. Where VPN is concerned, often the best VPN for Hulu, is onewhere you’ve paid for the service.
    As an example of the annual energy savings that can
    be achieved by a higher SEER replacement whole house air conditioner
    consider a case where your present air conditioner has a SEER of 8.

  • download

    May I simply say what a relief to discover somebody
    that really understands what they’re discussing over the internet.
    You actually know how to bring a problem to
    light and make it important. More and more people
    have to check this out and understand this side of the story.
    It’s surprising you aren’t more popular because you certainly possess
    the gift.

Deixe um comentário