XDEF FI      
            ABSENTRY FI 
           
   org $820
   DC.W $DE08, $3402, $0235, $0024, $2000, $1210, $2400, $2300, $2105, $0835	
   DC.W $0840, $082E, $0820, $4567, $2000, $2002, $7837, $0200 
       
            ORG $4000
FI:       	LDX      #$2A	;				0				0
;	          LDX        $2A ;					2				0
;            ADDA   $4000	 ;				1				0
;            	STD    	$12, X   ;                           			0                                             	2 
  ;            RTS      ;                                                                         2                                                       0
;;	LDX 	3, X	    	;			_____				______

 ;	LEAX	3, X+				;	_____				_____


;	LDX	$0834	    		;		_____				_____
		

;	LDX	#$0834				;	_____				_____


;	MOVB   5, +X,   2, -Y		;		_____				_____


;	DEC  	5, -X				;	_____				_____


;	DEC  	[5, X]			;		_____				_____


;	MOVW		#4, $0800	;		_____				_____


;	PSHX				;		_____				_____


;	ROR	$0800		;			_____				_____				

;	ROR	[$0800, X]  ;                			_____				_____


;	JSR    	$1234, X		;		_____				_____				
;	JSR  	[$123, X]		;		_____				_____

;	BCLR  	$1000, $F0	;			_____				_____
; TARG:  BRCLR $40, X, $20, TARG;		_____				_____ 


	
	LDAA #$98    ;
	ADDA #$79    	;	 	After this ADDA instruction executes, the condition code (CCR) flags are:  

				;	H = ___ N = ____  Z = ____   V = ____  C = _____

				;	Register A contains $__________ 
	DAA    ;
				;	After this DAA instruction executes, Register A contains $___________
	LDAA #$E5 ;
	ADDA #$C7	;		After this ADDA instruction executes, the condition code (CCR) flags are:

;H = ___ N = ____  Z = ____   V = ____  C = _____

				;	Register A contains $__________ 

	LDAA #$85    ;
	SUBA #$5B		;	After this SUBA instruction executes, the condition code (CCR) flags are:

;N = ____  Z = ____   V = ____  C = _____

				;	Register A contains $__________ 
	LDAA #$43    ;
	SUBA #$CD		;	After this SUBA instruction executes, the condition code (CCR) flags are:

;N = ____  Z = ____   V = ____  C = _____

;Register A contains $__________


	LDD   #$ABCD
	SUBD #$5DCB		;	After the SUBD instruction executes, the condition code (CCR) flags are:

;N = ____  Z = ____   V = ____  C = _____

				;	Register D contains $__________ 


	LDAA #$A5  ;
  CMPA #$C2		;	After the CMPA instruction executes, the condition code (CCR) flags are:

;N = ____  Z = ____   V = ____  C = _____

				;	Register A contains $__________ 

	LDX   #$0123   ;
	       LEAX $0123, X
	       TFR  X, D
	       ADDD #$FDBA	;After the ADDD instruction executes, the condition code (CCR) flags are:
				;	N = ____  Z = ____   V = ____  C = _____
				;	Register D contains $__________ 


;3.	( 14 Points - 1 pt per blank)  Given the following address map in an M68HC12-based system, fill in the blanks:
;Address  Contents   	A. The following two instructions are executed:           			
          		LDX $832                 
           		LDD 8, X+
;        	 Now register "A" contains $________
;                             register "B" contains $________
;                             register "X" contains $______________
;      B. The following two instructions are executed 
;
 			LDY   #$0832		
 			LDX  5,+Y
 
;		Now register  "Y" contains $_________ and register "X" contains $_________

;      C. The following instructions are 
     LDX  $834
		LDX  -3,X
     LDY   $821
		LDAA 2,Y
		LDAB [2,Y]
          
;           Now X contains $______________  and D contains $________________

;      D. The following four instructions are 
;           executed:  
         		LDS  #$1000             	
             LDY #$0836
            PSHY
            PULB
                     	PULA
                      	PSHY
                     	LDY    2,Y
				LEAX	2,Y
; Now "Y" contains $__________ "S" contains $__________  "D" contains $___________  "X" contains $____________

;E.	Assume the memory map above, and that he following program fragment is executed from location START:	

START:		LDY #3
		      LDD #0
		      LDX #$0820
LOOP1:  	ADDD 2,+X
		      DBNE  Y,LOOP1
		      STD $0800
LOOP2:		BRA LOOP2

;After the BRA instruction is executed, what is in X and Y, and what is stored at locations $800 and $0801 ?  	
	
;	X = $____________	X = $_____________	($800) = $___________  ($801) = $___________

     org $fffe
     fdb FI