This short machine code routine displays the Caps Lock and Shift Lock state at the bottom of the screen. It is interrupt-driven and so works continually once it has been set up. To set up the machine code program, use the Basic loader which checks for typing errors in the machine code data. Once the data has been entered correctly and POKED into memory, save it with SAVE"lokview.bin",b,&xxxx,&F0 where &xxxx is the start address of the machine code. It is important to save the machine code before it is called. As the program is relocatable, it can be installed anywhere in memory and run from there. The Binary Loader program loads the program just above HIMEM, and can be merged into any program where the status is to be displayed. The assembly listing shows how the program works. Firstly, screen windows are set up; then an interrupt routine is added to the Frame Flyback event. The routine then returns to Basic, but the interrupt routine will be activated every fiftieth of a second. After a Mode command, the windows will be changed; they can be reset by WINDOW 1,80,1,24:WINDOW #7,1,80,25,25, or you can CALL the address at which LOKVIEW is stored. Australian Personal Computer ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 343 millisecondes et consultée 963 foisL'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. |
|
|