GRAPHIC command executing in assembler

Started by MIRKOSOFT, December 03, 2009, 07:44 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

MIRKOSOFT

Hi!

I want to ask simple Q:

I need to allocate memory $1300 - $3FFF.

Simple method in BASIC v7 is using command GRAPHIC 1 and BASIC program will have starting address $4000 instead of $1C00.

How to execute GRAPHIC command with parameter in assembler?

I don't want to write any routine - better is using system routine.

Thanks for every reply.

Miro
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

Hydrophilic

#1
In BANK 14 or BANK 15 simply JSR $9F4F to allocate the BASIC VIC bitmap.

In BANK 14 or BANK 15 simply JSR $A022 to de-allocate the BASIC VIC bitmap.

In either case, any BASIC program in memory will be moved and re-linked, which can take several seconds for a large program.

You can check if the BASIC VIC bitmap is allocated by checking address $76.  If zero, bitmap is not allocated; otherwise it is allocated.

Edit
:D  Happy birthday!  :D
/Edit
I'm kupo for kupo nuts!