Motorola M68CPU32BUG Instrukcja Użytkownika Strona 5

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 35
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 4
3
Part 3: Compiling a program using the Windows AS32 assembler.
In your Unix account create an appropriate directory structure for the experiments. For
example have a main ‘COEN311’ directory with subdirectories for each experiment
(EXP1, EXP2 etc.). In the subdirectory for the first experiment create an ASCII text file
(use any of the available text editors such as ‘nedit’, ‘vi’, ‘emacs’. Alternatively a Windows
text editor such as Microsoft Notepad may be used, save the file in your U:\ in an appro-
priately named folder) containing the following:
* Experiment 1
* Name: Ted Obuchowicz, put your name here
* Date: August 31, 2009
ORG $3000
CLR.L D1
CLR.L D2
CLR.L D3
CLR.L D4
MOVE.B #$01,D1
MOVE.B #$02,D2
MOVE.B #$03,D3
START
ADD D1,D1
ADD D2,D2
ADD D2,D3
MULS D1,D3
DIVS D2,D1
SUB D0,D0
BEQ START
END
Save this program under the filename “exp1.asm”.
The AxIDE assembler is somewhat quirky. Here a few hints which will prevent assembly
errors:
• lines containing only comments should begin in column 1 as in:
* Experiment 1
* T. Obuchowicz
* July 27, 2006
* comments should become in column 1, this will cause an error
Przeglądanie stron 4
1 2 3 4 5 6 7 8 9 10 ... 34 35

Komentarze do niniejszej Instrukcji

Brak uwag