How to read/write from/to REU in assembler?

Started by MIRKOSOFT, October 11, 2009, 07:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

Hi!

I have now 1541Ultimate Plus Ethernet.

In options I choose REU Enabled with size 16MB.

So, I know that it must adressed in 256 banks ($00 - $FF) to access full size of 16384 kB.

But, I don't know how to access REU in assembler, in BASIC it is easy with commands FETCH, STASH, SWAP.

So, easy question with maybe with complicated answer:

How to read/write from/to REU in assebmler?

Thanks for every reply.

Miro
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk

commodorejohn

Have you been to the Zimmers.net Commodore FTP archive? There are a whole ton of manuals and books there about Commodore programming (the 1700/1750 REU manuals, for example,) which have the answers to a lot of your questions.

MIRKOSOFT

Hi!

Thanks for link.
I found there manual for 17xx REU. But what I'm not sure is that I don't know how to address more than 8 banks (REU 1750 - 512kB), I selected in 1541U REU size 16384kB, so it needs $FF banks - but how to address it?

Thanks for help.

Miro
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk

commodorejohn

All you need to do to access larger REUs is write the appropriate (higher) value to the bank register. Actual Commodore REUs won't recognize it, but others like the RAMLink or your emulated one will handle it just fine.