BBC BASIC for Windows
« Using Dim hit limit at 399,399 for a tile map help »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:57pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Using Dim hit limit at 399,399 for a tile map help  (Read 290 times)
Torro
New Member
Image


member is offline

Avatar




PM


Posts: 25
xx Using Dim hit limit at 399,399 for a tile map help
« Thread started on: Jul 28th, 2015, 5:25pm »

Set up a tile map for 399,399 Everything works

But if I want to go higher say 999,999 get dim space. error

Will Himem work have 8gb

or Alternatives to using a Dim arrays structure to define a tile map that could be huge potentially

User IP Logged

rtr2
Guest
xx Re: Using Dim hit limit at 399,399 for a tile map
« Reply #1 on: Jul 28th, 2015, 6:39pm »

on Jul 28th, 2015, 5:25pm, Torro wrote:
Set up a tile map for 399,399 Everything works
But if I want to go higher say 999,999 get dim space. error

You don't say what kind of array (byte? 32-bit int? 64-bit int? variant? structure?) and obviously that determines the size of each element and thus the biggest array that will fit.

This code runs for me without issuing an error:

Code:
      HIMEM = PAGE + 200000000
      DIM array%(40000000) 

That's 40 million elements, which is 100 times the size of yours!

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls