12c_Lab_Manual

12c_Lab_Manual - Computer Engineering 012c University of...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Computer Engineering 012c University of California, Santa Cruz Alexandra Carey <[email protected]> Cliffton McIntire <[email protected]> Joel Ferguson <[email protected]> Richard Hughey <[email protected]> The Happy Assembly Class Table of Contents December 2002 ii Table of Contents Table of Contents ii Table of Figures v Table of Tables vi The Happy Assembly Class Lab Manual 1 0.1 Abstract 1 0.1.1 Course Philosophy 1 0.2 Revision History 2 0.3 Notations Used In This Manual 2 0.4 List of Acronyms 3 0.5 Overview of Academic Honesty 4 1 For the Lab 5 1.1 Lab Preparation 5 1.2 Programming Style 5 1.2.1 Comments in code 5 1.3 Your README 6 1.4 Submission Instructions 6 1.5 Grading 7 1.5.1 Getting back grades 7 1.5.2 Getting back grades with checkoffs in lab 7 2 MIPS and MAL 11 2.1 MIPS 11 2.2 Wonderful World of MAL 11 2.2.1 Registers and instructions 11 2.2.2 MAL directives 12 2.2.3 More information 12 2.3 Development Software 14 2.3.1 SSH, Exceed, and xspimsal 14 2.3.2 Xspimsal control buttons, displays, and messages 17 2.3.3 Alternatives to xspimsal 19 2.4 MALgorithms 20 2.4.1 Input and print a number, character by character 20 2.4.2 Extract and print 8 bits 22 2.4.3 What is RPN? 24 2.4.4 Tips on procedure calls 26 2.4.5 MAL to TAL conversion 27 2.4.6 Help on MIPS machine code 28 2.5 Code Examples and Explanations 30 2.5.1 MAL character I/O 30 2.5.2 Procedure calls 32 The Happy Assembly Class Table of Contents December 2002 iii 3 Motorola HC11 35 3.1 Introduction to Microcontrollers & HC11 35 3.2 Beautiful Bounties of HC11 35 3.2.1 HC11 hardware 35 3.2.2 And language 36 3.2.3 Variables in HC11 39 3.2.4 More information 39 3.3 Development Software 40 3.3.1 Building and running HC11 executables 40 3.3.2 Alternatives to TeraTerm 43 3.4 HC11 Algorithms 43 3.4.1 Rot-13 43 3.4.2 What is recursion? 44 3.4.3 Recursion: Fibonacci in HC11 47 3.4.4 HC11 procedure calls 48 3.4.5 Notes on interrupts 48 3.5 Code Examples and Explanations 49 3.5.1 HC11 I/O 49 3.5.2 Procedure calls 50 3.5.3 Light patterns 53 3.5.4 Interrupts 54 3.5.5 Pulse accumulator 54 3.5.6 LCDINT 57 4 Example Labs 59 4.1 Are Only Examples 59 4.2 MAL 59 4.2.1 Efficiency 59 4.2.2 Displaying the Register (MAL I/O) 62 4.2.3 Self-modifying code 63 4.2.4 Stack 64 4.2.5 Procedure calls 66 4.2.6 Negabinary arithmetic 71 4.2.7 Jump table calculator 72 4.2.8 Variable-sized stack operations 75 4.3 HC11 77 4.3.1 I/O: ROT-13 77 4.3.2 Procedure calls 79 4.3.3 Interrupts 83 4.3.4 Hi-Low Game 84 5 Appendix: Summaries and Classwork Help 86 5.1 Logical Operations 86 5.2 Binary Number Conversion Summary 87 The Happy Assembly Class Table of Contents December 2002 iv 5.2.1 Binary 87 5.2.2 Example converting decimal to radix point 88 5.2.3 Octal 89 5.2.4 Hexadecimal 89 5.2.5 Examples 89 5.3 Floating Point Summary 90 5.3.1 Floats are not reals! 90 5.3.2 Normalized numbers 90 5.3.3 SPFP 90 5.3.4 The conversion process 90 5.3.5 Example: converting from decimal to SPFP 91 6 Appendix: Important Tables 92 6.1 MIPS Table of Registers...
View Full Document

{[ snackBarMessage ]}

Page1 / 109

12c_Lab_Manual - Computer Engineering 012c University of...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online