CODINGLISTINGS ★ RSX CLOCK/ALARM ★

Clock|Popular Computing Weekly)Real Time Clock|Computing with the Amstrad)Rsx - Clock - Interrupt - Uhr für den CPC 464|CPC Amstrad International)RSX ClockRSX Clock|Popular Computing Weekly)Rtc - Real Time Clock|Amstrad Action)
 ★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se le presenta en su versión original ★ 
 ★ Dieser Text wird in seiner ursprünglichen Fassung Ihnen 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.

  • |Clockoffto 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/Listing:
» RSX-Clock    (Popular  Computing  Weekly)    ENGLISH    LISTINGDATE: 2017-05-09
DL: 4 fois
TYPE: PDF
SIZE: 299Ko
NOTE: Uploaded by CPCLOV ; 2 pages/PDFlib v1.6

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):

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.75-desktop/c
Page créée en 047 millisecondes et consultée 634 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.