{"id":13436227,"url":"https://github.com/Number571/asmlib","last_synced_at":"2025-03-18T20:31:03.832Z","repository":{"id":143015271,"uuid":"200407947","full_name":"number571/asmlib","owner":"number571","description":"Little library for assembly language (fasm, x86-64, linux). ","archived":true,"fork":false,"pushed_at":"2023-08-27T07:22:42.000Z","size":79,"stargazers_count":41,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-27T20:18:48.929Z","etag":null,"topics":["asm","library"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/number571.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}},"created_at":"2019-08-03T18:23:10.000Z","updated_at":"2024-08-19T05:58:33.000Z","dependencies_parsed_at":"2024-01-23T18:12:15.519Z","dependency_job_id":"0e5dd446-ba7e-4b12-947a-060d139e6011","html_url":"https://github.com/number571/asmlib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/number571%2Fasmlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/number571%2Fasmlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/number571%2Fasmlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/number571%2Fasmlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/number571","download_url":"https://codeload.github.com/number571/asmlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244301352,"owners_count":20430927,"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":["asm","library"],"created_at":"2024-07-31T03:00:45.673Z","updated_at":"2025-03-18T20:31:03.556Z","avatar_url":"https://github.com/number571.png","language":"Assembly","funding_links":[],"categories":["Assembly"],"sub_categories":[],"readme":"# ASMLIB\n\n\u003e Little library for assembly language (dialect FASM)\n\n\u003e More information about asmlib in the [youtube.com/watch?v=TuNiVG2hYuU](https://www.youtube.com/watch?v=TuNiVG2hYuU \"asmlib\")\n\n### Compile library:\n```\n$ cd asmlib/\n$ make compile\n```\n\n### Example (RPN interpret):\n```asm\nformat ELF64\npublic _start\n\ninclude \"asmlib/fmt.inc\"\ninclude \"asmlib/irp.inc\"\ninclude \"asmlib/sys.inc\"\n\nsection '.bss' writeable\n    input_size equ 1024\n    input rb input_size\n\nsection '.data' writeable\n    quit db \":q\", 0\n    console db \"\u003e\u003e \", 0\n\nsection '.text' executable\n_start:\n    .next_iter:\n        mov rax, console\n        call print_string\n        mov rax, input\n        mov rbx, input_size\n        call input_string\n        push rax\n        call readline\n        cmp rax, 1 ; quit code\n        je .close\n        pop rax\n        call interpret_rpn\n        call print_integer\n        call print_line\n        jmp .next_iter\n    .close:\n        jmp exit\n\nsection '.readline' executable\n; | input:\n; rax = string\n; | output:\n; rax = number\n; ; 0 = nothing\n; ; 1 = quit\nreadline:\n    push rcx\n    push rsi\n    push rdi \n    mov rsi, rax\n    mov rdi, quit\n    mov rcx, 3\n    repe cmpsb\n    cmp rcx, 0\n    je .is_quit\n    jmp .nothing\n    .is_quit:\n        mov rax, 1\n        jmp .close\n    .nothing:\n        mov rax, 0\n    .close:\n        pop rdi\n        pop rsi\n        pop rcx\n        ret\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNumber571%2Fasmlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNumber571%2Fasmlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNumber571%2Fasmlib/lists"}