This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: and the 6 th bits of the value at $C100, and the BCLR instruction clears the 0 th and the 4 th bits of the value at $C101. The resulting values, therefore, are $F4 and $0C in $C100 and $C101 respectively. 6. Many ways to do this. Most common is to set up a mask to check the bits. Problems from the textbook Chapter 3: Fundamental: 2. Each 68HC12 assembler creates two files during an assembly process: “filename.s19” and “filename.lst”. The “s19” file is the machine language file which is loaded onto a 68HC12 controller for execution. The “lst” file contains the hexadecimal machine language code, the original assembly language code, and the memory locations where the machine code is stored. The “lst” file is a valuable tool for debugging purposes. In addition, some assemblers create other files such as a backup file and a simulation file for 68HC12 simulators. Challenging: 2. Hand assembled program is as follows: Note that RESULT is allocated memory at address $C20D, at the end of the program....
View Full Document
This note was uploaded on 03/24/2008 for the course EGR 331 taught by Professor Jayanthirao during the Spring '08 term at Michigan State University.
- Spring '08