*----------------------------------------------------------- * Title : * Written by : * Date : * Description: read a string from keyboard *----------------------------------------------------------- ORG $1000 START: ; first instruction of program * Put program code here * TRAP #15 is used for I/O. Put the task number in D0. LEA message, A1 MOVE.B #14,D0 TRAP #15 * task 2 Read string from keyboard and store at (A1), NULL (0) * terminated, length returned in D1.W (max 80) LEA input, A1 MOVE.B #2, D0 TRAP #15 LEA message2, A1 MOVE.B #14,D0 TRAP #15 LEA input, A1 MOVE.B #14,D0 TRAP #15 SIMHALT ; halt simulator * Put variables and constants here message DC.B 'Come ti chiami? ',0 message2 DC.B 'Ciao ',0 input DS.B 80 END START ; last line of source *~Font name~Courier New~ *~Font size~10~ *~Tab type~1~ *~Tab size~4~