MPLAB ASM30 Listing:  test_dsc30.s 			page 1
 Sample dsPIC Assembler Source Code
 For illustration only.
   1              	# 1 "test_dsc30.ASM"
   2              	# 1 "<built-in>"
   1:test_dsc30.ASM ****  .title " Sample dsPIC Assembler Source Code"
   0              	
   0              	
   2              	        .sbttl " For illustration only."
   3              	        ; dsPIC registers
   4              	        .equ CORCONL, CORCON
   5              	        .equ PSV,2
   6              	        .section .const,psv
   7                 	
   8                 			.equ    Gomb1, PORTB,#RB0
   9                 			.equ    Gomb2: PORTB,#RB0
  10                 	Gomb3	.equ    PORTB,#RB0
  11                 	Gomb4:	.equ    PORTB,#RB0
  12                 			.equ    Gomb5, #RB0
  13                 	
  14                 	hello:
  15 ???? 48 65 6C 6C 	        .ascii "Hello world!\n\0"
  15      6F 20 77 6F 
  15      72 6C 64 21 
  15      0A 00 
  16                 	        .text
  17              	        .global __reset
  18              	
  19              	#define	LED	PORTE,#0
  20              	__reset:
  21              	
  22 ??????  00 00 A9 			bclr	LED
  23              	
  24              			bset.b	Gomb1
  25              			bset.b	Gomb2
  26              			bset.b	Gomb3
  27              			bset.b	Gomb4
  28              			bset.b	PORTB, Gomb5
  29              	
  30              	        ; set PSVPAG to page that contains 'hello'
  31 ??????  00 00 20 	        mov     #psvpage(hello),w0
  32 ??????  00 00 88 	        mov     w0,PSVPAG
  33              	        ; enable Program Space Visibility
  34 ??????  00 40 A8 	        bset.b  CORCONL,#PSV
  35              	        ; make a pointer to 'hello'
  36 ??????  00 00 20 	        mov     #psvoffset(hello),w0
  37              	        .end
MPLAB ASM30 Listing:  test_dsc30.s 			page 2
 Sample dsPIC Assembler Source Code
 For illustration only.
DEFINED SYMBOLS
                            *ABS*:00000000 test_dsc30.ASM
                            *ABS*:00000000 <command line>
                            *ABS*:00000000 <built-in>
                            *ABS*:00000000 test_dsc30.ASM
                            *ABS*:00000001 __30F2010
                            *ABS*:00000001 __dsPIC30F
                            *ABS*:00000001 __C30COFF
      test_dsc30.ASM:5      *ABS*:00000002 PSV
      test_dsc30.ASM:11     .const:00000000 Gomb4
      test_dsc30.ASM:14     .const:00000000 hello
      test_dsc30.ASM:20     .text:00000000 __reset
      test_dsc30.ASM:22     .text:00000000 $AUTOLINE$

UNDEFINED SYMBOLS
CORCONL
CORCON
Gomb1
PORTB
RB0
Gomb5
PORTE
Gomb2
Gomb3
PSVPAG

SECTION INFORMATION:

Section        Length (PC units)   Length (bytes) (dec)
-------        -----------------   --------------------
.text                          0               0  (0)

TOTAL PROGRAM MEMORY USED (bytes):             0  (0)

Section           Alignment Gaps   Length (bytes) (dec)
-------           --------------   --------------------
.data                          0               0  (0)
.bss                           0               0  (0)

   TOTAL DATA MEMORY USED (bytes):             0  (0)
