{"id":32230818,"url":"https://github.com/drojaazu/prettydasm","last_synced_at":"2026-04-08T12:33:14.845Z","repository":{"id":57154342,"uuid":"52694736","full_name":"drojaazu/prettydasm","owner":"drojaazu","description":"A tool to format text disassemblies (primarily from MAME) into pretty HTML","archived":false,"fork":false,"pushed_at":"2020-09-07T00:06:00.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-31T09:58:36.667Z","etag":null,"topics":["disassemblies","mame","retrocomputing","retrogaming","romhacking"],"latest_commit_sha":null,"homepage":"http://sudden-desu.net/prettydasm/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drojaazu.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}},"created_at":"2016-02-27T23:49:12.000Z","updated_at":"2024-12-19T21:04:06.000Z","dependencies_parsed_at":"2022-08-23T05:00:17.770Z","dependency_job_id":null,"html_url":"https://github.com/drojaazu/prettydasm","commit_stats":null,"previous_names":["ryogamasaki/prettydasm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drojaazu/prettydasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drojaazu%2Fprettydasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drojaazu%2Fprettydasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drojaazu%2Fprettydasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drojaazu%2Fprettydasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drojaazu","download_url":"https://codeload.github.com/drojaazu/prettydasm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drojaazu%2Fprettydasm/sbom","scorecard":{"id":123584,"data":{"date":"2025-08-11","repo":{"name":"github.com/drojaazu/prettydasm","commit":"722ad51e941b358e5ae3e929dbe5ea54c465eca6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T03:07:57.272Z","repository_id":57154342,"created_at":"2025-08-16T03:07:57.272Z","updated_at":"2025-08-16T03:07:57.272Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["disassemblies","mame","retrocomputing","retrogaming","romhacking"],"created_at":"2025-10-22T11:03:06.808Z","updated_at":"2026-04-08T12:33:14.836Z","avatar_url":"https://github.com/drojaazu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"prettydasm\n==========\nA tool to format text disassemblies into readable HTML tables.\n\nSee http://sudden-desu.net/prettydasm for an example.\n\nInstallation\n------------\nClone the git repository or install via npm:\n\n    npm install prettydasm\n\nUsage\n-----\nWritten in plain JavaScript; no framework/library dependencies.\n\nPlace the disassmbly text inside a PRE element and add class 'pdasm' to the element. When the page loads, these elements will be converted to tables.\n\nAlternatively, you can disable the `auto_process` setting and manually call `make_pretty_dasm(elem)` with a reference to a specific element. It will return a reference to the newly created formatted table.\n\nFormat\n------\nThe code is meant to work with disassemblies from MAME, though it will work with any code formatted like this:\n\n    address   opcode   args    comments\n    0F020012: moveq    #1, D6  ; put 1 into register d6\n\nSymbols\n-------\nIn the arguments field, you can define symbols on hexadecimal values. These symbols will replace the hex in the output, with the original value visible by hovering the mouse over the symbol.\n\nThe symbol should be wrapped in curly braces and should immediately follow the hex value. Example:\n\n    003952: move.w  #$0, $1c2000.l{symbol_name}\n\nComments\n--------\nComments can be added to specific lines by appending a semicolon to the end of the line. Example:\n\n    003998: jsr     $8e64.l ; jump to the subroutiune at 0x8E64\n\nThe comment text is collapsed into a user-defined HTML block (see `comment_content` setting) in order to save space, and the comment will be visible on mouse hover.\n\nArchitectures/CPUs\n------------------\nThe hardware architecture from which the disassembly originates can be specified to allow for more detailed formatting. In particular, this adds support for identifying hardware registers. This is done by adding the appropriate CSS class to the PRE element. Example:\n\n    \u003cpre class='pdasm pdasm-arch-m68k'\u003e ... \u003c/pre\u003e\n\nThe current built in architectures are as follows:\n - Motorole M68000 : pdasm-arch-m68k\n - Hitachi/Renesas SH-2 : pdasm-arch-sh2\n - Zilog Z80 : pdasm-arch-z80\n - MOS 6502 : pdasm-arch-6502\n - Intel i960 : pdasm-arch-i960\n - Hitachi/Renesas H8 : pdasm-arch-h8\n - Intel 8086/8088 : pdasm-arch-8086\n - Intel x86 (32bit) : pdasm-arch-x86\n - ARM : pdasm-arch-arm\n\nIf an architecture if not specified, no register formatting is performed and hex values are assumed to have prefixed notation with either `$` or `0x`.\n\nNew architecture definitions can be added to the `archs` object. This is documented in the source.\n\nConfiguration\n--------------\nUser configuration is set at the top of the .js file.\n\n    auto_process (boolean)\nAutomatically convert all PRE elements with class 'pdasm' to formatted tables on page load. If set to false, you will need to manually call `make_pretty_dasm(elem)` on specific PRE elements.\n\n    comment_content (string)\nDefines the content that will appear in the last column when a comment is collapsed. This can be plain text or HTML (e.g. an IMG tag).\n\n    override_hex_notation (string)\nReplaces all hex notation with the specified string. Set to null to disable.\n\n    override_hex_postfix (boolean)\nForces architectures with postfixed hex notation to display prefixed instead.\n\n    capitalize_hex (boolean)\nForce all hex values to be capital.\n\n    capitalize_hex_sizes (boolean)\nForce all size specifiers on hex values to be capital. (e.g. $12F0.l -\u003e $12F0.L)\n\n    add_arch_caption (boolean)\nWhen true, adds a caption to the table element with the architecture name.\n\nCSS Classes/IDs\n---------------\n`table.pdasm` - Styles all prettydasm formatted tables\n\n`table.pdasm-arch-xxxx` - Where xxxx is the name of the architecture; styles all prettydasm formatted tables that match the architecture\n\n`span.pdasm-hex-notation` - Styles the hexadecimal notation\n\n`span.pdasm-hex-value` - Styels the hexadecimal value\n\n`span.pdasm-hex-size` - Styles the size postfix on a hex value\n\n`span.pdasm-symbol` - Styles a symbol substitution\n\n`span.pdasm-reg` - Styles the hardware registers\n\n`td.pdasm-comment` - Styles the comment marker\n\n`div#pdasm-commentbox` - Styles the popup box for comments\n\n`div#pdasm-symbolbox` - Styles the popup box for symbols\n\nIn order to reduce bloat on the generated HTML, there are no class names created for the adress and opcode columns. These can be selected by using the `first-child`/`nth-child` pseudo selectors on the table rows, e.g.:\n\n    .pdasm \u003e tr td:first-child\n\n    .pdasm \u003e tr td:nth-child(2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrojaazu%2Fprettydasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrojaazu%2Fprettydasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrojaazu%2Fprettydasm/lists"}