Login
Forum Help



Post Your Message
="hidden" name="cat" value="Programming">
Username: (Login)

Topic:
Message:
 


Previous Messages
Posted By

Shaun_B
on 2020-08-18
04:31:20
 Re: Detecting last drive number used

Thanks for the pointer. This works:

10 let i = i + 1: let d = peek( 174): if d = 0 then let d = 8
20 if i = 1 then load "music*", d, i

Posted By

KiCHY
on 2020-08-18
04:02:00
 Re: Detecting last drive number used

If my memory serves well, the address is $AE, according to our ultimate memory map:
Ultimate Map

Posted By

Shaun_B
on 2020-08-17
16:23:06
 Detecting last drive number used

Hi guys,

How would I detect the last drive number that was used?

According to my friend Robin Harbron, on the Commodore C64 I could do something like:

10 let drive = peek( 186 )
20 if drive = 0 then let drive = 8

Is there an equivalent or easier way to do this on the Commodore C16?

Many thanks,

Shaun.


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon