Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!RADC-LONEX.ARPA!koziarzw From: koziarzw@RADC-LONEX.ARPA (Walter Koziarz) Newsgroups: comp.sys.zenith.z100 Subject: CED100 hacks Message-ID: <8903271353.AA02326@lonex1.radc.af.mil> Date: 27 Mar 89 13:53:46 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 67 Date: Wed 15 Mar 89 15:19:02-EST From: Gern Subject: CED100 hacks To: INFO-HZ100@RADC-TOPS20.ARPA 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 ------- Comment by: koziarzw Date: Mon, 27 Mar 89 08:53:46 EST After making the change from 'LINEFEED' as the complete-the-filename key to 'ESC' the linefeed key no longer causes the computer to perform a linefeed. The key causes a '^J' to appear on the monitor rather than a linefeed to occur. Is there more to change? Thanks. Walt K. -------