Home » Hardware

HCS08 Microcontroller Instruction Sets Explained

Submitted by admin on September 30, 2010 – 2:37 pmNo Comment

The Full HCS08 Instruction Set

All S08 instructions (arguably all computer instructions) can be thought of as three basic types.

Data movement – a value is read from one location and written to another. All of the load/store instructions are examples of movement from one location to a different one. One of the locations is usually somewhere in main memory and has an associated address, the other is in one of the CPU registers and has only a name. Information flow can occur in either direction (depends on the instruction). Besides the load/store instructions that involve a CPU register and main memory there are several transfer that move (copy) data from one CPU register to another. There is one instruction, mov, that copies from one memory location to another. There are also a number of instructions that write an implied value (usually ones or zeros) to a CPU register or memory location. Clra, is an example.

Data processing (ALU) – there are two types; unary and binary. Unary instructions operate on only a single value obtained from either a CPU register or a memory location and write it back (the same place) after some modification (processing). Nega is an example. Binary instructions operate on a pair of values which they combine in some fashion to produce a result. These instructions almost always have at least one of the values come from a CPU register and place the result back in that register. Add is an example. A value is obtained from register A and from a memory location. These values are combined (processed) using the arithmetic addition operation, and the result is written back in register A

Program-flow altering – where the value of the PC is (or in the case of conditional branches, might be) changed from its normal upward counting sequence. This type of instruction is used to make subroutine calls, code loops, and code if-then-else style program constructs, to name a few.

If you would like to learn more, please visit my personal website at http://engineersphere.com and to see a Assembly Language Tutorial

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.


Architecture »

Want Imperia 3 BHK apartments Dosti Group THANE MUMBAI

Affinity Solution Pvt. Ltd.
Presents
Dosti Imperia Thane Mumbai:
Dosti Group Imperia Thane ||91-9999684166|| Dosti Group Imperia Project Thane | Dosti Group Imperia Property Thane | Dosti Group Imperia Propeties Thane | Dosti Group Imperia Apartment Thane | …

Hi-Tech »

IT »

Benefits of Online Video on Demand Services for Individuals

Are you tired of waiting for your favorite programs or movies? On the other hand, do you have to wait restlessly in front of the idiot box and have to watch commercials in between your …

Medicine »

Bring your natural smile back by consulting Burbank cosmetic dentist

A beautiful and charming smile is all you need when you speak to somebody. Your smile can attract anyone and make an impressive impact to the listener. And a simple problem in your teeth and …

Press Releases »

Vashi Navi Mumbai New Booking Properties-09999684166 Sparsh Projects By Arihant Vashi Mumbai

Affinity Solution Pvt. Ltd.
Presents
Arihant Sparsh Vashi Navi Mumbai:
Arihant Sparsh | Arihant Sparsh Vashi | Arihant Sparsh Vashi Rates | Arihant Sparsh Vashi Navi Mumbai | Arihant Sparsh Vashi Location | Arihant Sparsh Project Vashi | …

Science »

Culinary Management Programs

There are many different culinary management programs throughout the country at various schools, but the most common type is the Bachelor of Culinary Management degree, which can be found at colleges, universities, technical institutions and …