{"id":19041353,"url":"https://github.com/xboxdev/a56","last_synced_at":"2025-10-10T02:32:21.620Z","repository":{"id":77255911,"uuid":"96900811","full_name":"XboxDev/a56","owner":"XboxDev","description":"Modernized fork of a56, a DSP56001 assembler","archived":false,"fork":false,"pushed_at":"2019-10-21T16:55:39.000Z","size":58,"stargazers_count":10,"open_issues_count":10,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-13T15:51:36.596Z","etag":null,"topics":["a56","assembler","dsp","dsp56001","dsp56300","motorola"],"latest_commit_sha":null,"homepage":"","language":"Yacc","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/XboxDev.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,"governance":null}},"created_at":"2017-07-11T14:11:53.000Z","updated_at":"2023-09-04T20:59:21.000Z","dependencies_parsed_at":"2023-02-27T09:31:13.242Z","dependency_job_id":null,"html_url":"https://github.com/XboxDev/a56","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XboxDev/a56","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XboxDev%2Fa56","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XboxDev%2Fa56/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XboxDev%2Fa56/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XboxDev%2Fa56/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XboxDev","download_url":"https://codeload.github.com/XboxDev/a56/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XboxDev%2Fa56/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002541,"owners_count":26083400,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["a56","assembler","dsp","dsp56001","dsp56300","motorola"],"created_at":"2024-11-08T22:28:45.109Z","updated_at":"2025-10-10T02:32:21.596Z","avatar_url":"https://github.com/XboxDev.png","language":"Yacc","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n*Based on \"a56 - a DSP56001 assembler - version 1.3\"*\n\n```C\n/*\n * Copyright (C) 1990-1998 Quinn C. Jensen\n *\n * Permission to use, copy, modify, distribute, and sell this software\n * and its documentation for any purpose is hereby granted without fee,\n * provided that the above copyright notice appear in all copies and\n * that both that copyright notice and this permission notice appear\n * in supporting documentation.  The author makes no representations\n * about the suitability of this software for any purpose.  It is\n * provided \"as is\" without express or implied warranty.\n *\n */\n```\n\n# Overview\n\nThis program was written as a vehicle to learn the intricacies\nof the DSP56001 instruction set, and to provide a tool for Unix-based\nDSP code development (for those of us without a NeXT machine.)\n\nThe assembler probably generates bogus code here and there, and no doubt\ndoes not handle all of the syntax.  We welcome all comments, fixes and \nenhancements.\n\n\n# Building\n\nType `make`.\n\nThe resulting program, a56, is used as follows:\n\n```\na56 [-b] [-l] [-o output-file] file [...]\n```\n\nAn assembler listing is sent to the standard-output and an ascii-formatted\nobject file (a56.out) is produced.  The `-b` option adds binary to the listing.\n`-l` causes included files to be listed.  `-o` directs the output to the\nspecified file rather than the default, a56.out.\n\nA separate program, toomf, converts a56.out into \"OMF\" format suitable for \ndownloading to the 56001 via the sloader.a56 program.\n\n```\ntoomf \u003c a56.out \u003e file.omf\n```\n\n\n# Syntax\n\nThe intent was to provide compatibility with Motorola assembler's syntax.\nBut since the author did not have Motorola's assembler or its documentation,\nit is no doubt far from compatible.  Only a few pseudo-ops are implemented--\nprobably only partially.\n\nMacros are not supported, except through the use of an external macro\npreprocessor, such as /lib/cpp.  To facilitate cpp macro expansion, multiple\nassembler statements on a single input line are delimited with an `@`, e.g.:\n\n```C\n#define JCHEQ(c,label)\tmove #c,x0 @cmp x0,a @jeq label\n\n#define JCHNE(c,label)\tmove #c,x0 @cmp x0,a @jne label\n```\n\n\n## Supported pseudo-ops\n\nThe following is a list of the pseudo-ops that are recognized:\n\n```Assembly\n\u003csymbol\u003e = \u003cexpression\u003e                         ;assign a symbol\n\u003clabel\u003e EQU \u003cexpression\u003e                        ;ditto\n\nALIGN \u003cnumber\u003e                                  ;set location pointer\n                                                ;to next integral\n                                                ;multiple of \u003cnumber\u003e\n\nORG \u003cspace:\u003e \u003cexpression\u003e                       ;new location pointer\nORG \u003cspace:\u003e \u003cexpression\u003e, \u003cspace:\u003e \u003cexpression\u003e\n\nDC \u003cdc_list\u003e                                    ;declare constants\n\nDS \u003cnumber\u003e                                     ;reserve \u003cnumber\u003e\n                                                ;words of space\n\n\u003clabel\u003e DSM \u003cnumber\u003e                            ;reserve space for\n                                                ;properly aligned\n                                                ;modulo-addressed\n                                                ;buffer of size\n                                                ;\u003cnumber\u003e, assigning\n                                                ;the aligned starting\n                                                ;address to \u003clabel\u003e\n\nPAGE \u003cnumber\u003e, \u003cnumber\u003e, \u003cnumber\u003e, \u003cnumber\u003e     ;ignored\n\nINCLUDE \u003cfile\u003e                                  ;file inclusion\n\nEND                                             ;end\n```\n\nIn addition, a `PSECT` pseudo-op was implemented.  It allows program sections\nto be defined and bopped in and out of, each with its own location counter and\nspace.  The Motorola assembler probably does not have this pseudo-op, but no\ndoubt supports the concept in some way.\n\n```Assembly\nPSECT \u003cname\u003e \u003cspace:\u003e\u003cbegin_addr\u003e:\u003cend_addr\u003e    ;define\n\nPSECT \u003cname\u003e                                    ;switch to psect \u003cname\u003e\n```\n\n## Examples\n\nExample assembly can be found in the \"examples\" folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxboxdev%2Fa56","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxboxdev%2Fa56","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxboxdev%2Fa56/lists"}