Re: lego firmware in hex to high level language

[email protected]
Newsgroups gmane.comp.hardware.lego.robotics
Message-ID <[email protected]>
> Perhaps you could write yourself a disassembler in Visual Basic?  That's
> the way
> I'd go.  After too long hand-decoding 6502 machine code on BBC Micros I
> wrote my
> own disassembler for that machine, so it can be done.

You really have three steps to take:

1) Extract the actual binary code from the S-Records,
2) To disassemble the code,
3) By far the hardest - is to figure out what all that uncommented
   assembler (with no meaningful labels or variable names) actually
   means.  Disassembled code is pretty difficult to understand for
   anything but the shortest programs.

However, you can probably find a freeware H8 disassembler. There is a
project called UDA http://osx.freshmeat.net/projects/uda/ that could
probably do the actual disassembly job for you.

Personally, I'd just use an existing, documented OpenSource firmware
for the RCX such as the BrickOS package and forget all about the
standard Lego firmware.  If you are sufficiently familiar with
microprocessors to stand a hope in hell of understanding the
Lego firmware, then you should be perfectly at home with BrickOS
(which is easy to modify if you have to).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.