APPLICATIONSDIVERS ★ COPY KEY UTILITY|COMPUTING WITH THE AMSTRAD) ★

Copy Key Utility (Computing With the Amstrad)Applications Divers
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

Remove the repetition from typing with this program by BRENDEN WATHELET

HAVE you ever had to type the same word, line or string repeatedly while working in Basic? I think very few of you will answer "no" to that question!

Copykey is a short machine code utility - for any of the CPCs - which emulates CP/M's Control+W function and allows you to easily repeat the last string entered from the keyboard while in Basic's direct or edit mode. So if you are doing multiple disc CATs or typing lines of Basic that are similar, Copykey will save you time.

Type in and run Program I. Once the new facility has been enabled you will find that pressing Control + Copy repeats the last string of characters you typed, just as if you were typing them again. Press Return and the string is re-entered.

The only exceptions to this are strings that start with a numeric character. So if you are keying in a Basic line such as:

100 DATA 18,88,10,11,10,10,10,01

and line 110 is the same, you will need to work in auto mode or type in 110 separately before using Control + Copy which will then duplicate the DATA statement from the previous line.

The program works by setting up Control+Copy to generate an expansion token associated with a string. The string is in a buffer updated every time you press Enter or Return, which means that the buffer always contains the last string of characters entered.

An expansion token is a value which when produced by the keyboard is expanded by the micro to a predefined string.

An example is:

key, 136,"fred"
key def 71,1,136

which would redefine key 71 (the z key) to generate token 136, which we have designated to be expanded to "fred". Incidentally, the 1 specifies that the key is one that repeats.

Each control code (characters 0-31) has a machine code routine which is called when the character is "printed".

The addresses of the routines are held in a jumpblock which can be patched in the same way as the firmware jumpblock entries familiar to most of you.

A new routine which intercepts the jumpblock entry for character 13 (carriage return), copies the contents of the normal keyboard buffer to an expansion buffer set up by the program. The carriage return is then acted on in the normal way.

The expansion buffer mentioned will also be accessed by the operating system when allocating or reading other expansion strings which means that any key defining must be done after Copykey is enabled or you will lose the definitions.

If you want to play about with the control code jumpblock, full details are in the firmware manual under TEXT GET CONTROLS.

The entries in the block are three bytes each, one for the number of parameters to follow and two for the address. If you specify one or more parameters the computer will put the printed characters that follow into the control code buffer until the required number have been received.

Control will then be passed to your routine with the HL pair pointing at the buffer: B holds its length and both A and C contain the last parameter passed.

Under some circumstances this can be a neater way of interacting with the operating system than using the firmware jumpblock or an RSX command.

CWTA

★ PUBLISHER: Computing with the Amstrad
★ YEAR: 1987
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LICENCE: LISTING
★ AUTHOR: Brenden Wathelet

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Copy  Key  Utility    (Computing  with  the  Amstrad)    ENGLISHDATE: 2020-08-04
DL: 6 fois
TYPE: ZIP
SIZE: 4Ko
NOTE: 40 Cyls
.HFE: NON

Je participe au site:
» Newfile(s) upload/Envoye de fichier(s)
★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Function Key Lister (Computing With the Amstrad)
» Applications » Break Key (CPC Magazin)
» Applications » RSX Keywords
» Applications » Iankey
» Applications » Amstrad Keyboard Organ (Home Computing Weekly)
» Applications » Abbreviations For Keywords (Popular Computing Weekly)

QUE DIT LA LOI FRANÇAISE:

L'alinéa 8 de l'article L122-5 du Code de la propriété intellectuelle explique que « Lorsque l'œuvre a été divulguée, l'auteur ne peut interdire la reproduction d'une œuvre et sa représentation effectuées à des fins de conservation ou destinées à préserver les conditions de sa consultation à des fins de recherche ou détudes privées par des particuliers, dans les locaux de l'établissement et sur des terminaux dédiés par des bibliothèques accessibles au public, par des musées ou par des services d'archives, sous réserve que ceux-ci ne recherchent aucun avantage économique ou commercial ». Pas de problème donc pour nous!

CPCrulez[Content Management System] v8.7-desktop/cache
Page créée en 128 millisecondes et consultée 670 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.