home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / 1990 / 09 / ives / test2.lst < prev   
File List  |  1989-02-02  |  1KB  |  58 lines

  1.  Generic Assembler Version 1.0 :Wed Feb 01 11:33:23 1989
  2.                 ;
  3.                 ;  This is a test assembly source file for the
  4.                 ;  generic assembler. It demonstrates the
  5.                 ;  assembler's handling of unresolved forward
  6.                 ;  referenced symbols.
  7.                 ;
  8.                 start       equ       1000h
  9.                 data_start       equ       start+1000h
  10.  
  11.                 ; Code start. Note: my_value is forward referenced.
  12.                 ;            your_value is not defined.
  13.                        org       start
  14.  
  15.                 ; This instruction will not complete assembly since
  16.                 ; your_value is unresolved.
  17.  
  18.   0 001000   ???? ???? ???? loop       move.l  my_value,your_value
  19.                 Error 23. Unresolved symbol.YOUR_VALUE
  20.   1 001006   4EF8 1000               jmp       loop
  21.                 ;
  22.                 ; place data at data_start location
  23.                 ;
  24.                 my_value       equ     data_start
  25.                        end
  26.                 Error 23. Unresolved symbol.YOUR_VALUE
  27.  
  28.                  Symbol           Value     Class
  29.                  ----------------       ------    -------
  30.                  MY_VALUE           002000    Local    Absolute
  31.                  LOOP           001000    Local    Absolute
  32.                  DATA_START        002000    Local    Absolute
  33.                  START           001000    Local    Absolute
  34.  
  35.  Total Errors 1    Total Warnings 0
  36.  
  37.  
  38.  Name of file :test2.ASM
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. Listing 6 - Test2.asm assembly output.
  57.  
  58.