00001000 Starting Address Assembler used: EASy68K Editor/Assembler v5.12.25 Created On: 04/01/2015 12:25:33 00000000 1 *----------------------------------------------------------- 00000000 2 * Title : 00000000 3 * Written by : 00000000 4 * Date : 00000000 5 * Description: read a string from keyboard 00000000 6 *----------------------------------------------------------- 00001000 7 ORG $1000 00001000 8 START: ; first instruction of program 00001000 9 00001000 10 * Put program code here 00001000 11 00001000 12 00001000 13 * TRAP #15 is used for I/O. Put the task number in D0. 00001000 43F9 00001034 14 LEA message, A1 00001006 103C 000E 15 MOVE.B #14,D0 0000100A 4E4F 16 TRAP #15 0000100C 17 * task 2 Read string from keyboard and store at (A1), NULL (0) 0000100C 18 * terminated, length returned in D1.W (max 80) 0000100C 43F9 0000104B 19 LEA input, A1 00001012 103C 0002 20 MOVE.B #2, D0 00001016 4E4F 21 TRAP #15 00001018 22 00001018 43F9 00001045 23 LEA message2, A1 0000101E 103C 000E 24 MOVE.B #14,D0 00001022 4E4F 25 TRAP #15 00001024 26 00001024 43F9 0000104B 27 LEA input, A1 0000102A 103C 000E 28 MOVE.B #14,D0 0000102E 4E4F 29 TRAP #15 00001030 30 00001030 31 00001030 32 00001030 33 00001030 FFFF FFFF 34 SIMHALT ; halt simulator 00001034 35 00001034 36 00001034 37 * Put variables and constants here 00001034= 43 6F 6D 65 20 74 ... 38 message DC.B 'Come ti chiami? ',0 00001045= 43 69 61 6F 20 00 39 message2 DC.B 'Ciao ',0 0000104B 40 0000104B 41 input DS.B 80 0000109B 42 0000109B 43 END START ; last line of source No errors detected No warnings generated SYMBOL TABLE INFORMATION Symbol-name Value ------------------------- INPUT 104B MESSAGE 1034 MESSAGE2 1045 START 1000