APPLICATIONSDIVERS ★ EXTRA POWER ★

Extra Power (Your Computer)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 ★ 

Michael Mostowyj expands the Amstrad's vocabulary.

Amstrad basic is very fast and versatile but does lack one or two useful commands.

If the Basic program is entered and run, the code that is generated will add 21 new commands to Amstrad Basic that can be used from within your own Basic programs or as direct commands.

The new commands are logged on via the excellent RSX capability of the Amstrad. This allows machine-code routines to be called by names rather than using the unfriendly Call command. All new words must be preceded with the I symbol — shifted The code generated by the Basic program can be reloaded into memory with:

MEMORY 39999:LOAD "RSX.BIN":CALL 40000: CLOSEIN

The call to 40000 is needed to log on the new commands.

Table 1. The new commands.

  • |CAPSON Turns capitals lock on.
  • |CAPSOFF Turns capitals lock off.
  • |SHON Turns shift lock on.
  • |SHOFF Turns shift lock off.
  • |MOTORON Turns on cassette motor.
  • |MOTOROFF Turns off cassette motor.
  • |RESET Resets paper pen and colours to those at switch on. (Handy if you get in a muddle.)
  • |RESKEY Resets the key definitions to normal.
  • |LIST List all the new commands to jog your memory.
  • |FASTSAVE After this command all saves are made at approx 400 Baud, to revert to normal use the seed write command.
  • |FLUSH This flushes the keyboard buffer.
  • |HEADER This will read the first header it comes to on a cassette and displays all the relevant info.
  • |DEC,n This command will give the decimal value of any Hex or binary number up to the value of 65536. n=number to be converted.
  • |GRPEN,n Sets graphics pen colour where n=colour.
  • |GRPAPER,n Sets graphics paper colour where n=colour. Both of these are very useful when using the Tag facility.
  • |KEY,@A% Waits until a key is pressed then returns the ABC value in A%. (Although A% is used as an example any variable can be used as long as it has been previously defined in your program. Note the @ symbol before the variable, this must not be omitted).
  • vCHAR,s,x,g,@A% Returns the ASC value of the character at position xy in A%. s=Stream number. x = Position across. y=position down. (For explanation of A% see vKey.)
  • |DOKE,m,n This is a 16 bit version of Poke that allows numbers up to 65535 to be poked into two bytes instead of the normal one.
    m = Location to be poked. n = Number.
  • |DEEK,n,@A% As for |Doke but a 16 bit version of Peek. n=Location. (For A% see |Key.)
  • |GRID,n If you are using a DMP1 printer, this will print out grids for you to use when planning screen layouts. The grids are similar to those on pages 1,2 and 3 in Appendix 6 of the User Guide.
    n=Either 20,40 or 80.
  • |LOOK.n Prints out a section of memory starting at location n in sections of 200 bytes. Output can be sent to either the screen or printer. (Follow prompt.)
    Press large Enter to return to Basic or any other key for the next 200 bytes. (Best used in Mode 2.)

★ PUBLISHER: YOUR COMPUTER
★ YEAR: 1985
★ CONFIG: 64K + AMSDOS
★ LANGUAGES:
★ LiCENCE: LISTING
★ COLLECTION: YOUR COMPUTER 1985
★ AUTHOR: Michael Mostowyj
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» RSX-Extra  Power    LISTINGDATE: 2013-08-24
DL: 204
TYPE: PDF
SiZE: 241Ko
NOTE: 1 page/PDFlib v1.6

» RSX-Extra  Power    SPANISHDATE: 2020-04-22
DL: 227
TYPE: ZIP
SiZE: 8Ko
NOTE: 40 Cyls
.HFE: Χ

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
Je participe au site:
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop
Page créée en 651 millisecondes et consultée 1394 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.