{"id":17189534,"url":"https://github.com/walderlansena/studyingassembly","last_synced_at":"2026-05-17T18:11:40.419Z","repository":{"id":232892180,"uuid":"95909006","full_name":"WalderlanSena/StudyingAssembly","owner":"WalderlanSena","description":":mortar_board: :computer: Repositório com código de estudo da linguagem de programação Assembly","archived":false,"fork":false,"pushed_at":"2017-07-02T00:01:50.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T04:54:24.369Z","etag":null,"topics":["0x86","32bits","asm","assembly","baixo-nivel","code","estudo","linguagem-assembly","linux","nasm","nasm-assembly","programacao","programacion","sistema","syscalls"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WalderlanSena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-06-30T17:13:33.000Z","updated_at":"2023-04-23T18:08:25.000Z","dependencies_parsed_at":"2024-04-12T05:14:33.523Z","dependency_job_id":"d914e116-be32-438a-9679-2eef039fa391","html_url":"https://github.com/WalderlanSena/StudyingAssembly","commit_stats":null,"previous_names":["walderlansena/studyingassembly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WalderlanSena/StudyingAssembly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WalderlanSena%2FStudyingAssembly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WalderlanSena%2FStudyingAssembly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WalderlanSena%2FStudyingAssembly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WalderlanSena%2FStudyingAssembly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WalderlanSena","download_url":"https://codeload.github.com/WalderlanSena/StudyingAssembly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WalderlanSena%2FStudyingAssembly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259998189,"owners_count":22943769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["0x86","32bits","asm","assembly","baixo-nivel","code","estudo","linguagem-assembly","linux","nasm","nasm-assembly","programacao","programacion","sistema","syscalls"],"created_at":"2024-10-15T01:11:52.931Z","updated_at":"2026-05-17T18:11:35.400Z","avatar_url":"https://github.com/WalderlanSena.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eEstudando Assembly\u003c/h1\u003e\n\u003cp align=\"center\"\u003eRepositório com código de estudo da linguagem de programação Assembly\u003c/p\u003e\n\n# O que é a linguagem Assembly?\n\n**Assembly** ou **linguagem** de montagem é uma notação legível por humanos para o código de máquina que uma arquitetura \nde computador específica usa, utilizada para programar códigos entendidos por dispositivos computacionais, como \nmicroprocessadores e microcontroladores. [Fonte: wikipedia](https://pt.wikipedia.org/wiki/Assembly)\n\n\u003ch1 aling=\"center\"\u003e\n  Compilador \u003cimg src=\"http://www.nasm.us/images/nasm.png\"\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"http://www.nasm.us\" target=\"_blank\"\u003e\u003cstrong\u003eVisite nasm.us \u0026raquo;\u003c/strong\u003e\u003c/a\u003e\u003c/p\u003e\n\n## System\tCalls\n\n\"As\tsystem\tcalls\t(ou\tchamadas\tdo\tsistema)\tsão\tAPIs\tpara\tcriar\tuma\tinterface\tentre\to\tuser\tspace\t\n(espaço\tonde\to\tutilizador tem\tpermissão\tpara\tcorrer\tos\tseus\tprogramas)\te\to\t\nkernel\tspace\t(espaço\tonde\to\tsistema\toperativo\tcorrer\tos seus programas\tque\tnecessitam\tde\tum\t\nnível\tde\tpermissão\tsuperior).\tNos\tjá\tusamos\talgumas\tsystem\tcalls\ttais\tcomo\to sys_write\te\to\tsys_exit,\t\npara escrever\tno\tecrã\te\tterminar\to\tprograma,\trespetivamente.\"\n  \n\"Todas\tas\tsystem\tcalls\testão\tlistadas\tem ```/usr/include/asm/unistd.h```,\tjuntamente\tcom\tos\tseus\tnúmeros\t\n(o\tvalor\ta colocarem\tEAX\tantes\tde\tchamar\ta\tinterrupção\t80h).\"\n\neax | Nome    | ebx     | ecx | edx | esx | edi\n----|---------|---------|-----|-----|-----|----\n1   |sys_exit | int     |   - |  -  |  -  | - \n2   |sys_fork | struct pt_regs | -  | -   | -  \n3   |sys_read | unsigned int |char * |size_t | - | -\n4   |sys_write| unsigned int |const\tchar * | size_t | - | -\n5   |sys_open |const\tchar * | int | int | - | -\n6   |sys_close |unsigned\tint | - | - | - | -\n\n#### Exemplo de ultilização da SysCall exit\n\n```assembly\n\nsection .text\n  global _start ; informa o linker (ld) qual é o ponto de entrada\n\n_start:     ; ponto de entrada\n\nmov ebx, 0  ; valor de retorno para o SO(Sistema Operacional)\nmov eax, 1  ; valor da syscall exit()\nint 0x80    ; chamando o kernel\n```\n\n\u003cp align=\"right\"\u003e\n  :page_with_curl: \u003ca href=\"https://w3challs.com/syscalls/\" target=\"_blank\"\u003eSaiba mais sobre \u003cstrong\u003esysCalls\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### :computer: Utilização\n\n**Compilado um novo software**\n```\nnasm -f elf32 file.asm\n```\n\n**Linkando**\n```\nld -m elf_i386 -o file file.asm\n```\n\n**Executando**\n```\n./file\n```\n\n## :page_facing_up: License\nGNU **General Public License** (Licença Pública Geral), GNU GPL ou simplesmente GPL, é a designação da licença \npara software livre idealizada por Richard Matthew Stallman em 1989, no âmbito do projeto GNU da Free Software Foundation (FSF).\n\u003chttps://www.gnu.org/licenses/gpl-3.0.en.html\u003e\n\n## Sobre \n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.mentesvirtuaissena.com/\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://www.walderlan.xyz/wal.png\" title=\"Desenvolvedor: Walderlan Sena\" width=\"180\" height=\"180\"\u003e\n    \u003cimg src=\"http://www.walderlan.xyz/assembly.png\" title=\"Sobre o projeto Studying Assembly\" width=\"180\" height=\"180\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalderlansena%2Fstudyingassembly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalderlansena%2Fstudyingassembly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalderlansena%2Fstudyingassembly/lists"}