我想从文件中读取数字,但是当我这样做时,是否将从文件中读取的所有内容都放入缓冲区?还是只有1个号码?文件将包含5 6 7 10 9
这就是我用来从文件中读取的内容:(EASy68K 程序)
ORG $1000
START: ; first instruction of program
lea filename,a1
move #52,d0
trap #15
lea buffer,a1
move #datasize,d2 # bytes to read
move #53,d0 read from file
trap #15
SIMHALT ; halt simulator
filename dc.b 'test1.txt',0
END START ; last line of source