Motorola M68CPU32BUG Manuale Utente Pagina 13

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 35
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 12
11
Step 5: Add the values of the bytes of each block and append the one’s complement of
the least two significant bytes of the sum to the right side of the block:
09 40 00 20 3C 00 00 12 34 14
05 40 06 22 00 92
Step 6: complete the s-record with the header record, the header types and the termina-
tion records:
S0 10 00 00 47 4F 20 48 41 42 53 20 47 4F 21 20 20 04
S1 09 40 00 20 3C 00 00 12 34 14
S1 05 40 06 22 00 92
S9 03 00 00 FC
Comment: The header and termination records are the first and last line in the above list-
ing of step 6. Details about the format of these records can be found in Appendix 3.
Part 3: Downloading to the board.
Download your S-record file to the board. More details on how to download a file to the
board can be found in the first experiment.
Part 4: Contrast with assembler output
Assemble the program using the MC68332 assembler to obtain the listing and the S-
record files.
Once the listing and the S-record files are obtained, compare them with your hand gener-
ated files.
Part 5: Run the program.
Single step execute your program and observe the results.
QUESTIONS
1. What does the given assembly program do?
2. What is the purpose of the “checksum” field in the s-record format?
3. Why is it possible to have many different S-record files for a given assembly program?
4. Elaborate on the tasks of an assembler and a loader program.
5. In the given S0 record ( Step 6 of Part 2), what is the ASCII string represented by the
13 bytes appearing after the 2 byte address filed of 00 00?
Vedere la pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 34 35

Commenti su questo manuale

Nessun commento