APPLICATIONSDIVERS ★ Program Status ★

Program Status (Computing With the Amstrad)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 ★ 

WHEN developing software it's often necessary to know exactly how long your program is, where it is stored, how much memory is left and so on.

This sort of information isn't readily available on the Amstrad and at times it can be a nuisance having to perform lots of calculations to find out something as basic as how big your program is.

Status is designed to make life as easy as possible by providing you with all the information you require. Run the program and a short routine will be stored above HIMEM.

To use it just CALL &A000 and you'll to told the value of HIMEM. LOMEM. PAGE and TOP. The length of any program currently in memory is printed along with the space taken up by any variables and strings and the amount of free memory left.

LOMEM, PAGE and TOP aren't recognised by Locomotive Basic -they are names I've borrowed from BBC Basic. LOMEM is the lowest point in the memory that is free.

PAGE is where the Basic program is stored - it's always exactly at the start of a page of memory on the BBC Micro or Electron, but needn't be on the Amstrad. TOP is the top of the program - that is, the address at which it ends.

The routine works by peeking Basic's variables starting at &AE00. PAGE is stored at &AE81/64 - Basic 1.0/Basic 1.1, HIMEM at &AE7B/5E, TOP at &AE85/68 and LOMEM at &AE89/6C.

The rest of the information is calculated from these values. For instance the length of a program is PAGE - TOP. Armed with these facts you should now be able to make more efficient use of your Amstrad's memory.

CWTA

★ PUBLISHER: Computing With The Amstrad
★ YEAR: 1986
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ COLLECTION: COMPUTING WITH THE AMSTRAD 1986
★ AUTHOR: ROLAND WADDILOVE
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» Program  Status    (Computing  with  the  Amstrad)    ENGLISHDATE: 2020-07-25
DL: 157
TYPE: ZIP
SiZE: 4Ko
NOTE: 40 Cyls
.HFE: Χ

» Program  Status    (Computing  with  the  Amstrad)    LISTINGDATE: 2013-05-05
DL: 306
TYPE: text
SiZE: 3Ko
NOTE:

Je participe au site:
» Vous avez des infos personnel, des fichiers que nous ne possédons pas concernent ce programme ?
» 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 164 millisecondes et consultée 1363 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.