Motorola DSP56300 Assembler Version 6.2.0 99-03-18 14:06:48 demo24io.asm Page 1 1 ;test for INPUT/OUTPUT functions 2 ;to enable data streams type from COMMAND window 3 ; INPUT data_1 ;this will open input file 4 ; OUTPUT term ;this will redirect data to t he window 5 ; OUTPUT term -a ;this will send ASCII data to the window 6 7 8 X:000000 org x:0 9 10 X:000000 TST1: DC 'T','e','s','t',' ','o','f',' ','A' ,'S','C','I','I',' ','I','/','O',13,10 11 X:000013 DC 'L','i','n','e',' ','2',13,10 12 X:00001B DC 13,10 13 X:00001D DC 'L','i','n','e',' ','4',13,10 14 X:000025 DC '*','*','*',' ','T','e','s','t',' ' ,'f','i','n','i','s','h','e','d',' ','*','*','*' 15 TST2: 16 17 P:000000 org p:$0000 ; Program block starts at zero 18 P:000000 0AF080 jmp START ; Skip over interrupt vectors 000040 19 20 P:000040 org p:$0040 21 START: 22 ;input data from PC 23 P:000040 60F400 move #$0100,r0 ; start address to load data 000100 24 P:000042 44F400 move #$10004,x0 ; 4 words from file #1 010004 25 P:000044 61F400 move #$8001,r1 ; X memory space, input direction 008001 26 P:000046 000200 debug ; invoke emulator service 27 **** 28 [demo24io.asm 28]: WARNING --- Two-word instruction assembled at odd add ress in interrupt vector locations (Opcode field) 28 P:000047 60F400 move #$0108,r0 ; start address to load data 000108 **** 29 [demo24io.asm 29]: WARNING --- Two-word instruction assembled at odd add ress in interrupt vector locations (Opcode field) 29 P:000049 44F400 move #$10004,x0 ; 4 words from file #1 010004 **** 30 [demo24io.asm 30]: WARNING --- Two-word instruction assembled at odd add ress in interrupt vector locations (Opcode field) 30 P:00004B 61F400 move #$8001,r1 ; X memory space, input direction 008001 31 P:00004D 000200 debug ; invoke emulator service 32 33 ; modify received data 34 P:00004E 57F400 move #$678900,b Motorola DSP56300 Assembler Version 6.2.0 99-03-18 14:06:48 demo24io.asm Page 2 678900 35 P:000050 56E000 move x:(r0),a 36 P:000051 200010 add b,a **** 37 [demo24io.asm 37]: WARNING --- Pipeline stall reading register written i n previous instruction (X data move field) 37 P:000052 565800 move a,x:(r0)+ 38 P:000053 56E000 move x:(r0),a 39 P:000054 200010 add b,a **** 40 [demo24io.asm 40]: WARNING --- Pipeline stall reading register written i n previous instruction (X data move field) 40 P:000055 565800 move a,x:(r0)+ 41 P:000056 56E000 move x:(r0),a 42 P:000057 200010 add b,a **** 43 [demo24io.asm 43]: WARNING --- Pipeline stall reading register written i n previous instruction (X data move field) 43 P:000058 565800 move a,x:(r0)+ 44 P:000059 56E000 move x:(r0),a 45 P:00005A 200010 add b,a **** 46 [demo24io.asm 46]: WARNING --- Pipeline stall reading register written i n previous instruction (X data move field) 46 P:00005B 565800 move a,x:(r0)+ 47 48 ;output data to PC 49 P:00005C 60F400 move #$0100,r0 ; start address to xfer data 000100 50 P:00005E 44F400 move #$10004,x0 ; 4 words to file #1 010004 51 P:000060 61F400 move #$4001,r1 ; X memory space, output direction 004001 52 P:000062 000200 debug ; invoke emulator service 53 54 P:000063 300000 move #TST1,r0 ; start address to xfer data 55 P:000064 44F400 move #$20000+TST2-TST1,x0 ; xfer text to file #2 02003A 56 P:000066 61F400 move #$4001,r1 ; X memory space, output direction 004001 57 P:000068 000200 debug ; invoke emulator service 58 59 STOP: 60 P:000069 000000 nop 61 P:00006A 0C0069 jmp STOP 62 63 64 end 0 Errors 7 Warnings