没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > mid4th |
mid4th
|
0 | 0 | 0 |
贡献者 | 讨论 | 代码提交 |
Donate via Payal
Development of this forth system has stopped. Under development is a Gforth EC port for the nibz processor. An emulation environment for nibz will become available for MIDP-2.0 phones. This will allow Gforth on your phone. Please bare with me while nibz is being developed. Many Thanx.
An ANS Forth System written in Java2ME. It is adapted for Mobile devices from WebForth, available at the FIG archive. The Forth is reasonably standard with referance to the Dpans94 standard document, with a few changes to facilitae use on a mobile device. The main features are as follows.
The Forth suports persistant blocks of size 256 UTF-16 characters. There are 256 blocks in a block set. The current block set can be edited through the Java interface, or saved, or loaded. A Java based block set manager can be used to load or delete block sets.
The use of general URL files is supported. Any URL may be supplied as a filename, and opening the file is done read only. Writes to files are sandboxed, and so no changes are ever made to files. An initial "/" selects the current file root. File input is UTFPlus an extension of UTF-8 and UTF-16BE.
There are PlatformSpecificWords to control many features of MID4th.
The display supports a background bitmap with 16 bit colour depth (ARGB each 4 bits), and an overlayed full colour font capacity. Alignment is to an 8*8 pixel grid monospacing of TheFont.
The playing of MIDI notes is supported, with note 69 being 440Hz. The notes play asynchronously, so as not to interfere with execution. There are facilities to synchronize code with the device master clock, and multimedia abilities depending on the phone model. Note that some phones suspend or end MIDlets when a media stream is opened, and this may be anoying.
The main Specification is growing with each version. The ToDo list is also growing, due to interest. Let me know if anything useful to add comes to mind. Be aware that this is a forth system designed to teach forth, so adding complex primitives implementing Java functionality is not the aim. An example is that only PLOT is included (Java allows much more), and any higher level drawing words will be written in forth. This way of working also increases the bootstrap potential of the system.
Cheers me dears.