[ql-users] rom image

2005-06-16 Thread Dilwyn Jones
Try again (don't know who I sent the first copy to by mistake).

I've been offered an article for QL Today if I can answer the following query. 
Being at work, I haven't got the answer to hand, so if anyone can help, I'd be 
grateful.

I have a rom image on disk which won't load with the usual LRESPR command. How 
do I install it?

I presume this is a copy of an eprom saved to disk from the QL eprom slot with 
a command like sbytes filename,48*1024,16*1024.

From memory, roms have a header and I think a pointer to code execution 
address or similar, so the command is probably something like:

base=respr(48*1024)
lbytes filename,base
CALL base+peek_l(base+4)

or similar.


-- 
Dilwyn Jones

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] rom image

2005-06-16 Thread Marcel Kilgus
Dilwyn Jones wrote:
 base=respr(48*1024)
 lbytes filename,base
 CALL base+peek_l(base+4)

At base+4 is a pointer to SBASIC extensions, but most ROMs do the
BASIC initialisation themselves, I think. Therefore

CALL base+peek_w(base+6)

is really the correct code, but in practice it doesn't make a
difference with most ROMs.

SMSQ/E users can try using the EPROM_LOAD command, but that only
accepts ROMs up to 16kb.

Marcel

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: Re: [ql-users] rom image

2005-06-16 Thread Dilwyn Jones
  base=respr(48*1024)
  lbytes filename,base
  CALL base+peek_l(base+4)
 
 At base+4 is a pointer to SBASIC extensions, but most ROMs do the
 BASIC initialisation themselves, I think. Therefore
 
 CALL base+peek_w(base+6)
 
 is really the correct code, but in practice it doesn't make a
 difference with most ROMs.
Thanks.

If I understood the query properly, it's how to run a toolkit 2 rom image (16K) 
from disk on a QL.

Qemulator and IIRC correctly allow you to load 16K rom images like the toolkit 
2 one as well.

 
 SMSQ/E users can try using the EPROM_LOAD command, but that only
 accepts ROMs up to 16kb.
 
 Marcel


-- 
Dilwyn Jones

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm