
			CSCI 261 Lab Task 6
			===================


The intent of this lab is to gain experience using the CME11E9-EVBU
boards.

The development environment consists of an EVBU board connected to a
PC running Linux and the GNU HC11 development tool-chain.  To access
the environment, login to one of the work-stations.  You can down-load
and run programs on the EVBU under the control of gdb or the board's
Buffalo monitor.  To issue Buffalo commands to the EVBU, power-on the
board, run minicom on your work-station and reset the EVBU board; the
Buffalo prompt should now appear in your minicom window.

gdb Control
===========

   - Copy cscicad:~csci261/HC11/swap to your work-station.

   - Edit the bats.script and modify the script such that the program is to
     run on the EVBU rather than the simulator.

   - Power-up the EVBU.

   - Press the EVBU's reset button.

   - Type make bats

You can also type make and enter gdb (interactive). Before you can run
the program, you must set the target and the baud rate as given at the
top of the bats.script file.

Buffalo Control 
===============

   - Copy cscicad:~csci261/HC11/swap to your work-station.

   - Edit the bats.script and modify the script such that the program is to
     run on the EVBU rather than the simulator.

   - Power-up the EVBU.

   - Start a minicom session on your work-station.

   - Press the EVBU's reset button.

   - Issue the Buffalo command load t.


   - Issue the unix command cat swap.s19 > /dev/ttyS0.
     (make bats will create swap.s19)

   - Issue the Buffalo command g 2000 to execute the program.

   - Issue the Buffalo command call 2013 to execute the swap subroutine.

Task
====

Verify that swap behaved to specification by running it on the EVBU
as follows:

1. Under the control of gdb with cew. 

   - Type make bats.

2. Under the control of gdb without cew. 

   - Type make and issue gdb commands to verify the behaviour of swap.
     

3. Under the control of the Buffalo monitor. 

   - Download swap.s19  using minicom and  issue  Buffalo monitor
     commands to verify the behaviour of swap.
