Path: utzoo!attcan!uunet!wuarchive!decwrl!adobe!hawley From: hawley@adobe.COM (Steve Hawley) Newsgroups: comp.sys.mac.programmer Subject: Re: Cross-assemblers for Mac Keywords: Mac, cross-assembler,6502,6510 Message-ID: <3665@adobe.UUCP> Date: 9 Jul 90 16:55:21 GMT References: <8094@ur-cc.UUCP> <185ldg@yoda.byu.edu> Reply-To: hawley@adobe.UUCP (Steve Hawley) Organization: Adobe Systems Incorporated, Mountain View Lines: 48 In article <185ldg@yoda.byu.edu> ldg@yoda.byu.edu (Lyle D. Gunderson) writes: >In <8094@ur-cc.UUCP>, Lars Kellogg-Stedman >(kellogg@prodigal.psych.rochester.edu) writes: > >>Does anyone know if a 6502/6510 cross assembler exists for the Mac? >>Hopefully something that uses standard mnemonics and pseudo-ops. > >Yes! A company called Micro Dialects sells a whole assortment of cross- >assemblers for the Mac. Their number mASM-6502 (that 'm' should be a 'mu' >for 'micro') works with the whole 6502, 65C02 and 65C00 family. >The last price I saw was $149.95 for each assembler, + $4 s/h per order. Or, if you don't want to spend any money, send me e-mail and I will send you a version of a 1-pass 6502 assembler that is written for unix machines (it compiles on the Mac under Think C, but needs a little tweaking to make sure that the arguments passed to malloc() are longs not ints). It is pretty fast, supports huge labels and the following pseudo ops: .or set origin or program .eq constant definition .as ascii string .hs hex string .bs block storage Any label reference can include a positive or negative displacement. Generates 2 completely non-standard formats because I had no idea of what the standards were, but they're E-Z to translate. Generates a symbol table, error messages, etc. Since you get the source, you can dick around with this as much as you want. Also, if you so choose, you can get my 6502 interpretter which does an instruction for instruction interpretation of a 6502 processor with a really gross command-line interface, and a pretty primitive monitor. It can read (guess what?) both of the file formats generated by my assembler. It also has hooks to get into the operating system by reserving addresses $F000-FFFF as traps. Doing a JSR or JMP to these addreses executes an IO function. I have a demo that acts like "cat". Free for both. Steve Hawley hawley@adobe.com -- "A blow on the head is... ...worth two in the bush." -Basil Fawlty