Managing Assembly Language Project Using CodeWarrior IDE

The CodeWarrior IDE has an integrated wizard to easily configure and manage the creation of your project. The wizard will get your project up and running in short order by following a short series of steps to create and coordinate the project and to generate the basic files that are located in the project directory.

This section will create a basic CodeWarrior project that uses assembly source code. A sample program is included for a project created using the wizard. For example, the program included for an assembly project calculates the next number in a Fibonacci series. It is much easier to analyze any program if you already have some familiarity with solving the result in advance.

A Fibonacci series is an easily visualized infinite mathematical series:

  0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... to infinity-->

  

It is simple to calculate the next number in this series. The first calculated result is actually the third number in the series because the first two numbers make up the starting point: 0 and 1. The next term in a Fibonacci series is the sum of the preceding two terms. The first sum is then: 0 + 1 = 1. The second sum is 1 + 1 = 2. The sixth sum is 5 + 8 = 13. And so on to infinity.

Let's now create a project with the wizard and analyze the assembly source and the Linker's parameter files to calculate a Fibonacci series for a particular 8-bit microprocessor in the Freescale HC(S)08 family - MC9S08GT60 . Along the way, some tips demonstrate how the CodeWarrior IDE helps manage your projects.