Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Detecting REU + VICE
2009-01-08 00:29
AlexC

Registered: Jan 2008
Posts: 293
Detecting REU + VICE

I'm looking for reliable method of detecting REU on different machines (c64/128) and VICE. Either I'm doing something wrong or the only really stable method (without actually writing to REU banks like shown here: http://www.codebase64.org/doku.php?id=base:reu_detect) is this one:

lda #$00
sta $df00
cmp $df00
beq noreu

The following code fails on my C128D:
http://www.willcox.de/index2.htm

At this point I don't need the size of REU as I assume that every single one will provide me with 128KB at least and this is as much as I need.

Thanks in advance
 
... 32 posts hidden. Click here to view all posts....
 
2017-02-08 08:35
Trash

Registered: Jan 2002
Posts: 122
I wrote some REU code a while ago and I tested for the reu by lda $d012, doing a compare of 256 bytes, sbc $d012 and comparing if the result was greater than 3...

But as CRT mentions, poking wildly into an unknown device could yield some unwanted results, you're better off just stating that a REU is required and have a manual confirmation or warn that you will be trashing the registers @df00...
2017-02-08 14:40
chatGPZ

Registered: Dec 2001
Posts: 11110
crashes are expected when there is some cartridge - like FC3 :)
2017-02-08 17:46
Frantic

Registered: Mar 2003
Posts: 1627
Whatever nice solution you guys come up with in the end, don't hesitate to add it to codebase:

https://codebase64.org/doku.php?id=base:thirdparty#reu

:)
2017-03-18 13:01
Repose

Registered: Oct 2010
Posts: 222
There is a good reason to be careful. There's not just REU and it might be at different locations, with a port expander.

So I wrote the official test code for sid symphony, see if you can find that disk.

It carefully detects for REU, Snapshot, snd sid chip, at any location. I believe it also does size or maybe I didn't bother, but size is tricky because the size bit can be the same in two models, you have to actually write ram.

I often had two devices plugged in at once, so I need that.

Btw some tests will actually freeze your computer in one or other device, by mapping out your ram oops
2017-03-18 14:27
chatGPZ

Registered: Dec 2001
Posts: 11110
"size is tricky because the size bit can be the same in two models"
there is no "size bit" in the first place - that bit tells you the state of the ram-type selection jumper. no more no less.
2017-03-18 15:12
Repose

Registered: Oct 2010
Posts: 222
I didn't know that, I just went by the manual. I had the smallest 1750, and never took it apart. Was there a jumper and it was user upgradable?

Still, that's reliable as it came in the box. If you change the jumper without changing the ram it's obviously your problem.
2017-03-18 15:28
chatGPZ

Registered: Dec 2001
Posts: 11110
the jumper tells the REC chip what type of RAMs are used... so if you upgrade the REU you have to set it accordingly. iirc the two smallest REU types can use one type of RAMs, all the bigger ones use the other. (dont recall what is what)
2017-03-18 17:06
Repose

Registered: Oct 2010
Posts: 222
Ok I see, 64x1 DRAMS, and replace them with 16 256x1.

http://www.commodore.ca/manuals/funet/cbm/documents/projects/me..

The jumper J1 is same and cut with 1750 and 1764 (256 and 512k) but on with 1700 (128k).

So you can quickly guess 128k or 256k or more.
2017-03-19 09:45
oziphantom

Registered: Oct 2014
Posts: 478
10 PRINT "DO YOU HAVE AN REU PLUGGED IN OVER 128K? (Y/N):INPUT A$
20 IF A$="Y" SYS XXXX
30 PRINT "PLEASE INSTALL AN REU OVER 128K AND TRY AGAIN"
40 GOTO 40
2017-03-19 13:01
tlr

Registered: Sep 2003
Posts: 1714
40 GOTO 10

;)
Previous - 1 | 2 | 3 | 4 | 5 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
commodore_freak
MAT64
Trazan
kbs/Pht/Lxt
Didi/Laxity
Apollyon/ALD
celticdesign/G★P/M..
Guests online: 147
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.052 sec.