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
Reply by Leon Heller●May 15, 20052005-05-15
"Mickey" <mickey.allroid@gmail.com> wrote in message
news:1116165951.360742.37660@f14g2000cwb.googlegroups.com...
> 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.
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
Reply by Spehro Pefhany●May 15, 20052005-05-15
On 15 May 2005 07:05:51 -0700, the renowned "Mickey"
<mickey.allroid@gmail.com> wrote:
>Hi,
>
>I am writing to ask if anyone knows how to hand assemble a simple
>68HC11 program?
>My problem is getting the op code.
> 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?
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).
--
********************************************************************
Paul E. Bennett ....................<email://peb@amleth.demon.co.uk>
Forth based HIDECS Consultancy .....<http://www.amleth.demon.co.uk/>
Mob: +44 (0)7811-639972
Tel: +44 (0)1235-811095
Going Forth Safely ....EBA. http://www.electric-boat-association.org.uk/
********************************************************************
Signal Processing Engineer Seeking a DSP Engineer to tackle complex technical challenges. Requires expertise in DSP algorithms, EW, anti-jam, and datalink vulnerability. Qualifications: Bachelor's degree, Secret Clearance, and proficiency in waveform modulation, LPD waveforms, signal detection, MATLAB, algorithm development, RF, data links, and EW systems. The position is on-site in Huntsville, AL and can support candidates at 3+ or 10+ years of experience.