{"id":18901085,"url":"https://github.com/regular/arm-assembler","last_synced_at":"2026-03-03T19:30:19.694Z","repository":{"id":57183754,"uuid":"38626191","full_name":"regular/arm-assembler","owner":"regular","description":"nodejs module that turns arm32 assembler code into arm32 machine code","archived":false,"fork":false,"pushed_at":"2016-07-14T18:53:48.000Z","size":3,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T00:45:29.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regular.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-06T15:00:26.000Z","updated_at":"2022-05-18T08:09:01.000Z","dependencies_parsed_at":"2022-09-14T06:10:23.072Z","dependency_job_id":null,"html_url":"https://github.com/regular/arm-assembler","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/regular%2Farm-assembler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Farm-assembler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Farm-assembler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Farm-assembler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/arm-assembler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239886015,"owners_count":19713413,"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":[],"created_at":"2024-11-08T08:55:08.061Z","updated_at":"2026-03-03T19:30:19.641Z","avatar_url":"https://github.com/regular.png","language":"JavaScript","readme":"arm-assembler\n===\nturn arm32 assembler instructions into binary machine-code\n\nPrerequisistes\n---\n\nYou need to have the [arm-eabi-toolchain installed](http://blog.y3xz.com/blog/2012/10/07/setting-up-an-arm-eabi-toolchain-on-mac-os-x)\n\nUsage\n---\n``` javascript\nvar through = require('through');\nvar test = require('tape');\nvar asm = require('.');\n\ntest('should assemble single instruction when given a string', function(t) {\n    t.plan(4);\n    asm('MOVEQ r0, r1, LSL r2', function(err, i) {\n        t.equal(err, null);\n        t.equal(i.toString(16), '1a00211');\n    });\n    asm('MOV r0, r1, LSL r2', function(err, i) {\n        t.equal(err, null);\n        t.equal(i.toString(16), 'e1a00211');\n    });\n});\n\ntest('should return stream when given a stream', function(t) {\n    var tr = through();\n    var out = asm(tr);\n    var i = 0;\n    t.plan(3);\n    out.on('data', function(data) {\n        if (i===0) {\n            t.equal(data.toString(16), '1a00211');\n            i++;\n        } else {\n            t.equal(data.toString(16), 'e1a00211');\n            i++;\n        }\n    }).on('end', function() {\n        t.equal(i,2);\n    });\n\n    tr.write('MOVEQ r0, r1, LSL r2');\n    tr.write('MOV r0, r1, LSL r2');\n    tr.end();\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Farm-assembler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Farm-assembler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Farm-assembler/lists"}