More electronics projects on mikekohn.net here.
Posted: July 25, 2012
Since I was adding new CPU support to naken430asm I decided to rename it to naken_asm. This is a raw, simple assembler. I have some include files for msp430 and Alexander Zhevak has made more complete include files available from: git clone git://github.com/zhevak/naken430-inc.git.
Stable here means I've been using it and proved it's working well. Beta means all the code is down but I haven't gotten a chance to write much code around it. If anyone else has been using one of these assemblers / disassemblers and finds it stable please let me know.
The source code is for compiling on Linux, BSD, or any other OS. Just install gcc and type ./configure and then make.
65xx - Support for 6502, 65c02, 6507, 6510, and any chip of this 8 bit family.
680x - Support for CPU's compatible with the 6800 instruction set.
68HC08/CPU08 - 68HC08 microcontroller instruction (CPU08). I did this specifically for the 68HC908GP32.
680x0/CPU32 - My target for this minimum 68000 for Amiga programming or Sega Genesis or such. I may add Amiga executable support for input and output.
8051/8052 - Support for 8051 and 8052 8 bit family chips (also known as MCS-51). I tested some code on an Atmel AT89S52.
ARM - Disassembler and assembler are mostly done for generic instructions. I made a small program to prove it working on the Raspberry Pi here.
dsPIC - Both disassembler and assembler are working. Tested a small blinking LED program on a dsPIC30F3012 with no problem.
MSP430 - Full MSP430 and MSP430X support.
STM8 - Added support for STM8. Valentin Dudouyt has created a tool to flash the STM8 Disovery board with Linux: https://github.com/vdudouyt/stm8flash.
TMS1000/TMS1100 - An old TI 4 bit CPU that's used in the Speak & Spell, Speak & Math, some old calculators, and others.
TMS9900 - One of the first 16 bit CPUs. From the looks of it it seems to be the grandfather of the MSP430. I didn't use TMS9900 standard syntax for hex, but I can change it if i get requests.
Z80 - I got all my info for this chip mostly from http://wikiti.brandonw.net/index.php?title=Z80_Instruction_Set and http://search.cpan.org/~pscust/Asm-Z80-Table-0.02/lib/Asm/Z80/Table.pm. There were a few weird things in here so I downloaded the datasheet from Zilog. There were just a couple extra instructions on these pages, not sure why. Anyway, the assembler/disassembler should be working.
How To Help
I've been working on a README I'm going to start including with the
launchpad_blink.asm - Make 2 LED's blink with the MSP430 Launchpad
November 29, 2013: I introduced a bug into the September 18, 2013 release that made naken_asm not deal with single ascii characters inside of '' correctly. This is fixed in the November 29, 2013 version. I removed any versions of naken_asm with that problem from my website.
November 28, 2013: Made some major improvements to ARM. Doing some comparing between GNU's as and naken_asm to make sure it's okay. Eventually I'm planning on making some auto-test of all the instructions like I did with dsPIC. Also, naken_prog can now program LPC chips. I can read the flash back and see that it came back the same way I wrote it so it appears it's working. I also fixed a bug in writing out symbols in ELF output.
November 07, 2013: I fixed a bug in the cycle counter in MSP430 and finished my clean-up of the ARM code. Over the next couple weeks I'm going to do some QA on it to make sure everything is working okay. I also added naken_prog which is currently able to read info and flash from LCP1114 ARM chips (and probably some others). Tomorrow I plan to make it so I can write to the flash of a chip.
October 30, 2013: I started on a major cleanup / rewrite of the ARM code a couple weeks ago. Hopefully in the next couple weeks I'll have a chance to finish it up. If not it's my Thanksgiving project.
July 28, 2013: Major rewrite of dsPIC assembler / disassembler is done. I added a script for converting Microchip's include files to naken_asm style. Working on my first big dsPIC project so I can mark this as stable.
July 21, 2013: Posted the latest. I deleted almost all of the dsPIC assembler and started over. I've been checking every type of instruction against the Microchip assembler and everything is looking really good. I have a couple things to polish up and a little more testing to do. Also, I have 6 DSP instructions that I haven't added yet. Should be done in a couple days I hope. Also, thanks to Ene Alexandru for reporting a segfault in the disassembler for msp430x and sending me a fix. That's included in this release too.
Copyright 1997-2013 - Michael Kohn