68HC11 Asm - Hand Assembly

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hi,

I am writing to ask if anyone knows how to hand assemble a simple
68HC11 program?
My problem is getting the op code.
I am using the standard instruction set.
I know that you have to count the number of CPU cycles for each
instruction.

Does anybody know of a good tutorial on this?

Thanks,
Mickey


Re: 68HC11 Asm - Hand Assembly
Quoted text here. Click to load it

You need to know the number of bytes for each instruction, not the number of
clock cycles, so that you can write down the address of each instruction.
Why not use an assembler, it's much easier?

Leon



Re: 68HC11 Asm - Hand Assembly
On 15 May 2005 07:05:51 -0700, the renowned "Mickey"

Quoted text here. Click to load it


Read this:
http://www.ee.ryerson.ca:8080/~jkoch/data_pdf/hc11rm.pdf



Best regards,
Spehro Pefhany
--
"it's the network..."                          "The Journey is the reward"
snipped-for-privacy@interlog.com             Info for manufacturers: http://www.trexon.com
We've slightly trimmed the long signature. Click to see the full one.
Re: 68HC11 Asm - Hand Assembly

Quoted text here. Click to load it

I have always found the Leventhal books very good on such topics. However,
if you already have the instruction set to hand (in the datasheets for the
processor) you just need to take note of how many bytes each instruction
occupies so that you can calculate the next instruction addresses. Be sure
to count the negative direction properly too (when doing jumps back to the
start of a loop).

--
********************************************************************
We've slightly trimmed the long signature. Click to see the full one.
Re: 68HC11 Asm - Hand Assembly

Hi,
try this for assembly and testing (free HC11 simulator):
http://mypage.bluewin.ch/a-z/peter_bruenisholz /

Regards
Peter


Site Timeline