BBC BASIC for Windows
IDE and Compiler >> Debugging >> *LOAD address out of range ERROR
http://bb4w.conforums.com/index.cgi?board=debugging&action=display&num=1257107258

*LOAD address out of range ERROR
Post by 19Grumpah42 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

Re: *LOAD address out of range ERROR
Post by admin 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.