Commodore 128 Alive!

Commodore 128 => 128 programmers => Assembly => Topic started by: MIRKOSOFT on September 30, 2009, 10:43 AM

Title: Recognizing running program in C64 mode / on real C64
Post by: MIRKOSOFT on September 30, 2009, 10:43 AM
Hi!

I have simple Q:

Can I in code recognize that C64 program is running on real Commodore 64 or on Commodore 128 in C64 mode?

Thanks for every reply.

Miro
Title: Re: Recognizing running program in C64 mode / on real C64
Post by: Blacklord on September 30, 2009, 06:43 PM
Quote from: MIRKOSOFT on September 30, 2009, 10:43 AM
Hi!

I have simple Q:

Can I in code recognize that C64 program is running on real Commodore 64 or on Commodore 128 in C64 mode?

Thanks for every reply.

Miro

Yes, there is a way. See this post (http://www.commodore128.org/index.php?topic=531.msg1634#msg1634).

Lance
Title: Re: If works in C64 mode...
Post by: MIRKOSOFT on October 01, 2009, 11:30 AM
...can detect size of VDC-RAM?

'cause working with registers $D600/$D601 is possible and also accessing VDC-RAM...

Thanks.

Miro
Title: Re: If works in C64 mode...
Post by: Blacklord on October 01, 2009, 12:31 PM
Quote from: MIRKOSOFT on October 01, 2009, 11:30 AM
...can detect size of VDC-RAM?

'cause working with registers $D600/$D601 is possible and also accessing VDC-RAM...

Thanks.

Miro

Yes you can do that as well (there are several posts about it here on the forum) - head for the search function.

cheers,

Lance
Title: Re: VDC RAM size in C64 mode
Post by: MIRKOSOFT on October 01, 2009, 08:41 PM
Hi Lance!

I know how to detect size of VDC RAM in C128 mode.
But how to do it in C64 mode?

Thank you for reply.

Miro
EhPortal 1.34 © 2025, WebDev