Example 3
Shift Left One Bit
Purpose: Shift the contents of memory location 0042 left one bit and place the result into memory location 00443. Clear the empty bit position.
Sample Problem:
(0040) = 6F
Result: (0043) = DE
Source Program:
LDA #$6F
STA $42
LDA $42 ;GET DATA
ASL A ;SHIFT LEFT
STA $43 ;STORE RESULT
BRK
No comments:
Post a Comment