









6301 Cross-Assembler V2.1-A   ADDIER2.MIC    03.01.1991    12:32:22    Page: 1
2.2.2. Addition von Worten & Bytes


LINE#  LOC    CODE                              SOURCE


   1  2000                       .list
   2  2000                       .file
   3  2000                       .title  2.2.2. Addition von Worten & Bytes
   4  2000               ;********************************************
   5  2000               ;  24-Bit Addition
   6  2000               ;********************************************
   7  2000               
   8  2000               zahl1   .equ    $3000           ; h”chstes Byte der Zahl1
   9  2000               zahl2   .equ    $3010           ; h”chstes Byte der Zahl2
  10  2000               summe   .equ    $3020           ; h”chstes Byte der Summe
  11  2000               
  12  2000   FC 30 01    start   ldd     zahl1+1         ; addiere 2 Byte auf einmal
  13  2003   F3 30 11            addd    zahl2+1         ; im Doppelakku D
  14  2006   FD 30 21            std     summe+1         ; 1. Teilergebnis (16 Bit) speichern
  15  2009   B6 30 00            ldaa    zahl1           ; h”chstes Byte bearbeiten
  16  200C   B9 30 10            adca    zahl2           ; šbertrag mit addieren !
  17  200F   B7 30 20            staa    summe           ; 2. Teilergebnis (8 Bit) speichern
  18  2012   3F                  swi                     ; Programmende
  19  2013               
  20  2013                       .end

Assembly successful, no errors detected.
Output-filename I:\TPACKER\ADDIER2.HX2
Elapsed time: 0.8 sec.
