mikeakohn / naken_asm

Assembler for MSP430, dsPIC, ARM, MIPS, 65xx, 68000, 8051/8052, Atmel AVR8, and others.
http://www.mikekohn.net/micro/naken_asm.php
GNU General Public License v3.0
294 stars 50 forks source link

naken_util disassembler for unsp is a bit confused #108

Closed pulkomandy closed 2 years ago

pulkomandy commented 2 years ago

Here are a few oddities I noted:

pulkomandy commented 2 years ago
mikeakohn commented 2 years ago

The jump instructions should be fixed in the disassembler.

The print and write commands are super awkward for this chip (and really any chip with multiple bytes per address). I think I have it working better than it was before though:

0x0000: 04cb add r2, [r3--]
0x0001: 4e42 jne 0x0000 (offset=-2)
0x0002: 4e00 jne 0x0003 (offset=0)

stopped> print16 1
0x0001: 4e42 4e00 0000 0000 0000 0000 0000 0000 BN.N............
0x0009: 0000 0000 0000 0000 0000 0000 0000 0000 ................

Let me know...