Alright.. so I have to get a list of sequences from user (seperated by spaces), then store them as decimal number at address $2000 (1byte per number. Then get the position of the smallest number.
eg. If 45 6 544 was entered
45 would be stored as '45' at $2000 - $2003
6 would be stored as '6' at $2004-$2007
544 would be stored as '544' at $2008-$2011
then print : " Position of smallest element is 2 "
I've only been able to store the characters as ASCII..
START: move.l #$7ffe,sp
move.l #$2000,a3 ;Pointer to first location in memory.
move.b 0,d1 ;turn off automatic echo
movea.l #message,a1 ;print prompt
next move.b #5,d0 ;INCH
move.b d1,(a3)+ ;store char
print movea.l #lowestint,a1
exit MOVE.B #9,D0
TRAP #15 ; halt simulator
message dc.b 'Enter sequence: '
lowestint dc.b cr,'The position of the smallest element is '
space equ $20