Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!VAX1!tut.cis.ohio-state.edu!ucbvax!RADC-TOPS20.ARPA!GUBBINS From: GUBBINS@RADC-TOPS20.ARPA (Gern) Newsgroups: comp.sys.zenith.z100 Subject: CED100 hacks Message-ID: <12478276319.9.GUBBINS@RADC-TOPS20.ARPA> Date: 15 Mar 89 20:19:02 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 52 At the request of several persons, I finally got around to looking at the CED100 code. It is not too readable. Aside from trying to pretty up the code formatting, Capitializing responses, etc. I did a minor hack to easily allow the changing of the CLEAR LINE key and FILENAME COMPLETION KEY. Note that the program as is and as it was uses ESC key as a CLEAR LINE and LINE FEED key as a FILENAME COMPLETION. Both key values must be different. So if you want to use the ESC key to do the FILENAME COMPLETION like on a DEC TOPS20, set 'clear_line equ 18h' for CTRL/X or what ever you like and 'complete_key equ 1bh'. Note that CTRL/U (NAK) also performs a CLEAR LINE already so if you don't want another key as the CTRL/X example above, set 'clear_line equ 15h'. The top lines of the code now read as follows: (I only put the 'Gern' line in so I know what copy version I am dealing with in the future) ; CED100.ASM ; Zenith Z-100 Command Line Editor With History And Filename Completion ; Disassembled from PC version and major hacks by Rob Logan ; Minor hacks by Gern 15-MAR-89 Add these two lines to the EQUs at the top of the code: clear_line equ 1bh ; ASCII of key to clear line complete_key equ 0ah ; ASCII of key for filename complete Change this segment of code to this: handle_control_char: .switch al .case BS call handle_back_space .break .case clear_line call handle_escape .break .case NAK call handle_escape .break .case complete_key call key_kp0 .break .other call handle_printable .endswitch ret Cheers, Gern -------