home *** CD-ROM | disk | FTP | other *** search
- IDED v1.00 John Elliott, August 1993.
- ================================================================================
-
- IDED is a companion program to ID.COM. It edits the identities of LocoScript
- files. While LocoScript itself can edit the identities of only documents,
- datafiles, phrases, settings or user dictionaries, IDED can edit the identity
- of any LocoScript file. It also works from CP/M, saving the long and tedious
- rebooting process.
-
- Syntax is:
-
- IDED d:filename.ext {n}
-
- The filename is the one whose identity you are editing; the number n is
- optional, but if it is present it specifies which group to use. If the file
- exists and is a suitable (ie LocoScript) file, the screen will clear, the
- identity will be displayed and the editor will be entered.
-
- Unlike LocoScript's own identity editor, this editor works in "overstrike"
- mode; if you type a character, it replaces the character under the cursor,
- and characters do not move to left or right. There are just two exceptions to
- this rule (marked with *).
-
- Valid keys are:
-
- Cursor keys: Move the cursor.
- RETURN or ENTER: Go to start of next line.
- <-DEL (DELETE): Replace character to the left of the cursor with a space.
- LINE/EOL (^B): Go to start of line.
- STOP (^C): Abandon edit.
- ALT+DOWN (^E): As RETURN.
- DEL-> (^G):*Delete character under the cursor, and shift all characters to
- the right of the cursor to the left by one.
- CAN (^H): As <-DEL.
- ALT+DEL-> (^K): Delete to end of line.
- CUT (^U): Delete line.
- [+] (^V):*Insert a space under the cursor, and shift all characters
- under or to the right of the cursor to the right by one.
- ALT+<-DEL (^X): Delete to start of line.
- EXIT (ESCAPE): Finish edit normally - save identity.
- [-] (^\): As ALT+DEL->.
-
- When you press EXIT to finish, the program ends.
-
- PCW, CPC and Spectrum +3 users need not read beyond here.
- ________________________________________________________________________________
-
- Modification for non-Amstrad computers:
-
- As supplied, the program will run on CP/M+ computers with Z80 processors and
- VT52 terminals (ie Amstrad CPC/PCW/Spectrum +3). The first two requirements
- remain unchangeable, but the display code can be changed for different
- terminals; the cursor key codes can also be altered.
- SID or similar must be used to make the changes. Here is how:
-
- At 0103h in the program file, there are two jump instructions:
-
- JP CLS
- JP MOVCUR
-
- The address in the first jump points to a 20h (32) byte area in the program
- file which should contain a routine to clear the screen (homing the cursor is
- not necessary). CLS may corrupt all registers. After CLS, there is a 12-byte
- data area. The first 8 bytes are for graphic characters:
-
- ORG CLS+32
- DB TLC,TL,TRC,LL,RL,BLC,BL,BRC
-
- In order, these are Top Left Corner, Top Line, Top Right Corner, Left Line,
- Right Line, Bottom Left Corner, Bottom Line, Bottom Right Corner (see diagram
- below).
-
- TLC TL TRC
- +------------------------------+
- | |
- LL| |RL
- | |
- +------------------------------+
- BLC BL BRC
-
- Then there are 4 bytes for the codes returned by the cursor keys:
-
- DB UP,DN,LT,RT
-
- After the data area is the MOVCUR routine (you can also find MOVCUR by
- looking at the word in 107h-108h). MOVCUR can occupy up to 40h (64) bytes. Its
- job is to move the text cursor to the coordinates specified in DE. D is the
- y-coordinate and E is the X-coordinate, counting from the top of the screen.
- The coordinates are zero based.
- After MOVCUR are two helpful routines:
-
- CHAR is at MOVCUR+40h. It prints the character in E to the screen. AF BC DE HL
- are preserved; other registers are undefined.
- STRING is at MOVCUR+4Eh. It prints the string at (DE) to the screen. The
- string should be terminated with $. AF BC DE HL are preserved; other registers
- are undefined.
-
- _______________________________________________________________________________
-