APPLICATIONSDIVERS ★ RSX CLOCK/ALARM ★

RSX Clock (Popular Computing Weekly)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 ★ 

As time goes by . . .

Keep track of those long hours at the keyboard with this interrupt driven clock by S Potter

This program is an RSX or Residential System Extension program which means its operation is controlled by real commands, not calls or pokes.

Locomotive Basic allows the machine code programmer to assign new keywords to the operating system and the system accepts them as it would normal keywords such as, Print etc. It is the programmer's job define the keywords and point them in the general direction of the routine they should control. These new keywords are preceded by the symbol (found by Shift/@).

The program is the Real Time Digital Alarm Clock for the Amstrad CPC 464/664 and is written as an RSX to allow ease of use.

The Amstrad has no fewer than four different types of interrupt easily accessible to the programmer, not counting the Basic Every! After interrupts which unfortunately are at a lower level of priority and suffer delays to Input etc.

This program uses the Ticker interrupt which is a 50th second interrupt and uses a count of 50, thus the program is accessed once every second. Consult the Concise Firmware Manual for more details on RSX and interrupts.

Type in the Basic loader, remembering to save the program before calling the program. Normally the start address is 40000 and is 500 bytes long so save the program by Save "title",b, 40000,500,40000.

With the Basic listing you will find odd line numbers; these are to coincide with the start address of the eight bytes of data on that line, the last number is the checksum of that line. To make typing easy use type in direct mode Auto 40000,8 to generate the line numbers. Any errors will report the line number where the error occurred. After running the Basic program with no error reports. Save the code as above and Call 40000.

The commands for the clock are: Clockonjiour.minute.second to display the clock and set the time. The parameters are optional when just redisplaying the clock, and the seconds are also optional.

  • |Clockoff to hide the clock display.
  • |Alarmon,hours,minutes to set the alarm time and counting.
  • |Alarmoff is entered to switch it off.
  • |Clockadj,n is used to adjust the clock timekeeping. The correct figure is 50 but may be altered to adjust the timekeepmg in 50ths of a second fast or slow.
    Note the parameter is not checked so keep within 40-60 or the clock may stop or the computer is interrupted so often that it never returns control.

The program is located at 40000 to allow room for a Symbol After 0 and DDI 1 disc drive if installed, when Him em is 40699, but may be relocated with an assembler to 500 bytes below Himem as required. It also uses all standard firmware calls and functions so memory area permitting will operate with most programs.

Finally, the clock is displayed in Window 7 so redefining Window 7 will allow the clock to be displayed anywhere on screen.

PopularComputingWeekly850509

★ PUBLISHER: POPULAR COMPUTING WEEKLY
★ YEAR: 1985
★ AUTHOR: S.POTTER

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» RSX-Clock    (Popular  Computing  Weekly)    ENGLISH    LISTINGDATE: 2017-05-09
DL: 308
TYPE: PDF
SiZE: 300Ko
NOTE: Uploaded by CPCLOV ; 2 pages/PDFlib v1.6

» RSX-Clock    (Popular  Computing  Weekly)    ENGLISH    LISTINGDATE: 2024-04-01
DL: 1
TYPE: text
SiZE: 6Ko
NOTE: Uploaded by CPCLOV ;

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

Lien(s):
» Coding Src's » SUB TIMER: Digital Realtime Clock (CPC Amstrad International)
» Coding Src's » David Wild PD desktop RSX library
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/c
Page créée en 658 millisecondes et consultée 2011 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.