APPLICATIONSDIVERS ★ FLASHING CURSOR ★

Rsx - Flashing Cursor (The Amstrad User)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 ★ 

This program creates a binary file RSXFCLUR.BIN and when run provides a flashing cursor routine like some word processors, making the cursor more visible on the screen. This is particularly useful in Mode 2 with a screen full of text. The Basic loader program pokes the Machine code routine into memory and then saves the code as a Binary file RSXFCLUR.BIN. The binary file can be loaded on its own or by adding the necessary commands to any Basic program requiring a flashing cursor. The commands - load"RSXFCLUR.BIN":call &beca - will load the Binary file into memory and initialise the code, providing a Resident System Extension (RSX), which gives the following commands:

  • |FLASH - Provides a flashing cursor at the default flash rate of 1 cycle per second.
  • |FLASH,n - Provides a flashing cursor at a rate determined by the parameter n, where n can be between 1 and 255. This will provide a flash of ft multiplied by 0.04 seconds.
  • |FLASH,0- Turns the flashing cursor routine off and reverts to a normal steady cursor.
The routine resides in memory from &BE80 upward. This area is used by CP/M for the BIOS Extended Jumpblock, but is unused under Amsdos, and provides an ideal place to store short routines. The only danger is if the stack overwrites the routine. With programs using normal levels of subroutine calls this is unlikely to happen. Another advantage of loading the code in this location Is that this area of memory is not written to after a system reset, so although the RSX will be lost and the cursor set to normal, the routine can be restarted by CALLing &BECA to re-initialise the RSX. When the routine is first initialised, the RSX is set up and an Event block is set up to flash the cursor via a Ticker interrupt.

When the command |FLASH is used, the routine is called, and a Ticker Header block is set up using any parameter passed (1 to 255), to set an initial count and recharge value. If no parameter is passed, an initial count and recharge value of 25 is set. (This gives a cursor rate of 1 per second). The routine then adds the ticker block to the machine's Ticker interrupt list and returns to Basic. If a parameter of zero is passed, then the ticker interrupt list and the cursor ceases to flash. When a Ticker interrupt occurs every 1 /50th of a second, the count held in the Ticker block is decremented. When the count reaches zero, the count is reset from the recharge value, and the flashing cursor is called. Thus if the count is set to 10, the routine will be called every tenth Ticker interrupt, or 5 times a second.

TAU

★ PUBLISHER: The Amstrad User (Australia)
★ YEAR: 1988
★ CONFIG: ???
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR: Ian Jardine
 

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

Lien(s):
» Applications » Archivator (Schneider CPC-Welt)
» Applications » The Landscape Utility
» Applications » Oxford PAO
» Applications » Integral Calculations
» Applications » Dataload (CPC Infos)
» Applications » Kit-Cat (Deuuligne #04)
Je participe au site:

» 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 178 millisecondes et consultée 1633 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.