Herramientas de usuario

Herramientas del sitio


en:locomotive:aplicaciones:basic:explorando_la_memoria

A> EXPLORING THE MEMORY
DESCRIPTION
Here is a challenge for all CP/M and BASIC experts. The following listing will allow you to view any part of the PCW memory, although ever since you load BASIC, the TPA will always show you Mallard BASIC.
A couple of fun areas to explore are around address 4500 (BASIC error messages) and around 2000 (BASIC keywords). But there is a surprise: the characters from address 22466 onwards read "Acorn computers". Can anyone explain why?.
SOURCE CODE
10 INPUT "Start";co 20 INPUT "End";fi 30 FOR a=co TO fi 40 mem$=CHR$(PEEK(a)) 50 IF ASC(mem$)>127 THEN mem$=CHR$(ASC(mem$)-128)+CHR$(9) 60 IF ASC(mem$)<32 THEN mem$=CHR$(9) 70 PRINT mem$; 80 NEXT:END
DIGITAL FILE

en/locomotive/aplicaciones/basic/explorando_la_memoria.txt · Última modificación: por jesus