log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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
HandbagHandbag 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
HandbagHandbag 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