Acorn Arcade forums: Programming: BASIC II matters
|
BASIC II matters |
|
andrew (00:02 25/6/2004) mavhc (07:45 25/6/2004) andrew (13:18 25/6/2004)
|
|
Andrew |
Message #56213, posted by andrew at 00:02, 25/6/2004 |
Handbag Boi
Posts: 3439
|
I've a couple of questions regarding BBC BASIC II. How do I work out how much space the variables use? LOMEM-PAGE gives the programme size but HIMEM-LOMEM just gives the remainder of the memory whether used or not doesnt it?
Also in MODE 7, is there a way of suppressing the space that results from using colours? e.g. P.CHR$129;"HELLO" gives <space>HELLO |
|
[ Log in to reply ] |
|
Mark Scholes |
Message #56223, posted by mavhc at 07:45, 25/6/2004, in reply to message #56213 |
Member
Posts: 660
|
I've a couple of questions regarding BBC BASIC II. How do I work out how much space the variables use? LOMEM-PAGE gives the programme size but HIMEM-LOMEM just gives the remainder of the memory whether used or not doesnt it?
Also in MODE 7, is there a way of suppressing the space that results from using colours? e.g. P.CHR$129;"HELLO" gives <space>HELLO The only other thing you can do in mode 7 is make the space a full block.
DIM A% -1
will give you the top of the variable space.
TOP-PAGE gives the program size, LOMEM is usually equal to TOP. A%-LOMEM will give the variable size |
|
[ Log in to reply ] |
|
Andrew |
Message #56234, posted by andrew at 13:18, 25/6/2004, in reply to message #56223 |
Handbag Boi
Posts: 3439
|
Clever I've also noticed that in Mode 7 I've lost over 3K for system workspace leaving just over 28K to work with. Not too bad though I suppose. |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: BASIC II matters |