Download presentation
Presentation is loading. Please wait.
1
HC11 Programming
2
HC11 Registers
3
Data Movement LDAA LDAB LDD LDS LDX LDY STAA STAB STD STS STX STY
4
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand and resulting status in CCR, given the following; 00F AABBCCDDEE F245A4B4C3229A9C9B2DAB2398 LDAA #$2C LDAA $F6 LDAA $0143 LDY $0140 LDX $F0
5
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand, result and resulting status in CCR, given the following; D = 1A68 X = 3C6A Y = 15AB STAA $18 STAB $04AB STD $03B7 STY $0460 STX $058A
6
Write the address and the machine code for the source program shown below;
ORG $0200 LDAA $0120 STAA $400 LDX $01 STX $0500 LDAB #$45 STAB $0460 LDD $30 STD $0560
7
Draw the flowchart and write the program that will copy two bytes from $0110 to $0120. Assemble the code starting at location $0200.
8
Clear Instructions CLRA CLRB CLR
9
Transfer Instructions
TAB TBA TAP TPA TSX TSY TXS TYS
10
Exchange instructions
XGDY XGDX
11
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand, result and resulting status in CCR, given the following; * D = AC23 * A4 C * CCR = 09 ORG $0200 0200 4F CLRA TAB 0202 CE 17 AC LDX #$17AC 0205 8F XGDX 0206 7F CLR $56
12
Add Instructions ADDA ADDB ADDD ADCA ADCB ABA ABX ABY
13
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand, result and resulting status in CCR, given the following; * A = 24 * B = A3 * X = 2AC6 * Y = 19A2 * CCR = 09 * A4 98 4E 5C F * D4 C2 A C 9B D2 ORG $0250 0250 8B ADDA #$65 0252 DB 9A ADDB $9A 0254 F ADDD $0128 0257 3A ABX
14
Increment Instructions
INCA INCB INS INX INY INC
15
Subtraction Instructions
SUBA SUBB SUBD SBA
16
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand, result and resulting status in CCR, given the following; * A = 7A * B = A3 * X = 2AC6 * Y = 19A2 * CCR =09 * A4 98 4E 5C F * D4 C2 A C 9B D2 ORG $0250 SUBA #$65 0252 D SUBB $93 0254 B SUBD $0128
17
Negate Instructions NEGA NEGB NEG
18
Decrement Instructions
DECA DECB DES DEX DEY DEC
19
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand, result and resulting status in CCR, given the following; * A = 7A * B = A3 * X = 2AC6 * Y = 19A2 * CCR = 09 * A4 98 4E 5C F * D4 C2 A C 9B D2 ORG $0250 0250 4A DECA DEX NEG $0125 INY
20
Logic Instructions ANDA ANDB ORAA ORAB EORA EORB COMA COMB COM
21
Example * A = 7A * B = A3 * X = 2AC6 * Y = 19A2 * CCR = 09
* A4 98 4E 5C F * D4 C2 A C 9B D2 ORG $0250 F ANDA #% COMB 0253 B EORA $0124
22
Logical Shift Instructions
LSLA LSLB LSLD LSL LSRA LSRB LSRD LSR
23
Arithmetic Shift Instructions
ASRA ASRB ASR
24
Rotate Instructions ROLA ROLB ROL RORA RORB ROR
25
Describe what each of the following instructions accomplishes and then indicate the addressing mode used, effective address(es) of operand, the operand, result and resulting status in CCR, given the following; * A = 7A * B = A3 * X = 2AC6 * Y = 19A2 * CCR = 09 * A4 98 4E 5C F * D4 C2 A C 9B D2 ORG $0250 LSLA LSRA A LSL $9A ASR $0123 ROLA RORB
26
Multiplication and Division Instructions
IDIV FDIV
27
Status Flag Instructions
CLC SEC CLV SEV
28
Problems Chapter Questions Pages 88,89 Problems 1,2,3,5,9,12,14,17,27,28 Chapter Problems Pages 89,90,91 Problems 2,4,5,8,11,12
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.