BBC BASIC for Windows
« *LOAD address out of range ERROR »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:59pm



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: *LOAD address out of range ERROR  (Read 1019 times)
19Grumpah42
Junior Member
ImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 57
xx *LOAD address out of range ERROR
« Thread started on: Nov 1st, 2009, 7:27pm »

Hello, I'm sure this is very basic! I cannot fathom this HALT and error message...
I am trying to load a 3KBy file as follows. [I plan to use FN_createspritefrommemory(N%, P%, W%, H%) to use it]...

File% =OPENUP (@dir$+"LAN_check.ico")
Ss%=EXT# File%
CLOSE#File%
DIM address% Ss%+1
*LOAD (@dir$+"LAN_check.ico")+STR$~address%+STR$~address%

These are the memory param.s....
address% = h1002503F
LOMEM = h10024406
HIMEM = h10821700
I have 1.42 GBy of RAM available at this time.

Is it the address% which is "out of range"? I have searched here and wiki, and cannot find any help for so basic a problem. shocked

I think my next question will be "How do I get this loaded image into the executable? I know it's possible, all the big guys do that."
--Grahame
User IP Logged

C-2-Q 3GB, C-2-Duo 2GB, both GeForce 9500 GT, WinXP sp3. Two Linux Ubuntu boxes (rock solid, lean and mean, but they won't run BB4W!).
admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: *LOAD address out of range ERROR
« Reply #1 on: Nov 1st, 2009, 9:54pm »

Quote:
*LOAD (@dir$+"LAN_check.ico")+STR$~address%+STR$~address%

You're missing some delimiters here (hint: try simply PRINTing the string so you can see exactly what command you are issuing).

It should probably be something like:

Code:
      OSCLI "LOAD """+@dir$+"LAN_check.ico"" "+STR$~address%+" +"+STR$~Ss% 

but if that doesn't work change OSCLI to PRINT and all should be revealed!

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