Changes

Jump to: navigation, search

PCN September 29 1984

88 bytes added, 14:56, 19 July 2020
Here is a very short but useful routine which would be of interest for Amstrad CPC 464 owners.When writing a program using one screen which was quite complicated, I came up with this routine which allows instant dumping of the screen to memory and virtually instantaneous retrieval at a later stage.It takes only 24 bytes of machine code and a few lines of Basic.It stems from the facility which allows you to save the screen on tape:SAVE "filename." B. &C000, &4000 <br /> <br />
The machine code routine is as follows:
<br /pre>DUMP:<br /> LD BC,&4000 <br /> LD HL,&C000 <br /> LD DE,&6B7A <br />LDIRRETRETRIEVE: <br />LD BC,&4000 <br /> LD HL,&6B7A <br /> LD DE,&C000 <br /> LDIR <br /> RET <br /pre>
---
Try this command for sound effect: <br />
10 ENT -1,5,5,1,10.-5,1,5,1,120 SOUND 1,500,10000,7,0,1
 
 
September 29 1984 issue of [[Personal Computer News]]
 
[[Category:Magazines]][[Category:CPC_Press]][[Category:Personal_Computer_News]]
941
edits