我放棄了ForthOS在jornada上的安家,而直接在上面安裝了Dragon Forth。
開始了Forth生活之路。
wince上安裝DF方法:
1. 下載 http://www.delosoft.com/files/v2b41/ds2.ARM.CAB
2. 拷貝到cf卡上。
3. wince下運行dsforth2.exe (這是個編譯器)
4. 彈出:
dsFORTH2 is ready to proceed file: dsin.txt Output to file: dsout.txt
Press OK to begin
5. Press OK, 程序開始編譯dsin.txt裏面指定的內容,輸出會寫入dsout.txt
編譯需要一定的時間。
6. 編譯完成,彈出: Saved OK
并且生成 ds2c.exe 文件。
7. 運行 ds2c.exe ,彈出簡單的console類似界面。就可以寫一些forth玩了。
實用wince api:
1. 消息框
S" Hello, the world!" MES
疑問:
1. 如何把自己的xx.f編譯進去?
試過寫入dsin.txt 但是,編譯出來的沒有。
注意:
1. 輸入的命令必須是大寫,才接受。
2. alt+cltr+del 可以殺掉。
没有评论:
发表评论