English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 20 January 2009, 01:46   #161
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Quote:
Originally Posted by prowler View Post
Well, good luck with that. It sounds like an ideal project for someone with your programming skills and inquiring mind. I'm not averse to a bit of soldering myself, so I'll be following the Cyclone20 project to see where it leads.

For disk imaging I have a Catweasel ISA card, which I am very sure of, and I am a registered user of Vincent Joguin's Disk2FDI program which I am equally pleased with. However, I also have a Catweasel MkIV which is still in the box, until they release some drivers to give it the promised functionality...

The Cyclone20 project seems like a good way forward. It'll be interesting to see what develops.

In the meantime, if there's anything you think I can do to help with your project, just let me know. I'll be only too pleased to assist.
Disk2FDI looks interesting.

The Catweasel is too expensive for something I can't tweak.

Don't worry. There's still the compactflash driver if you feel like testing something, I've not trashed it. It's just been a little on hold.

If you're going to follow the Cyclone20 project with your own dev board, you'll be able to use my codebase also, like I had said.
BlueAchenar is offline  
Old 20 January 2009, 02:41   #162
Supamax
Da Digger :)
 
Supamax's Avatar
 
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
So the BAWARP project is dead?
Noooooooooo.....

In an old post DrF said: "Theres some trackdisk replacement thingy on Aminet somewhere that allows 930ish K I think on a disk". Perhaps studying that you could see how to slow down the drive... just an idea. I don't know if the greater capacity is achieved by slowing the drive down

Jope wrote: "There are schematics and info regarding the 150rpm modification on Aminet. The modified drives are told to be very unstable at 150rpm, barely able to read the disks.."

This is probably silly, but: if the drive motor is not a stepper motor (I mean the motor which makes the floppy surface spin, not the stepper motor which moves the heads), couldn't we use some sort of addictional circuit (hardware pwm) to slow it down 50% (150 rpm)? Such a project could be also useful to slow down PC HD drives (with a switch, connected to the HD sensor) so that they can be used in HD-mode on Amigas...

Last edited by Supamax; 20 January 2009 at 03:32.
Supamax is offline  
Old 20 January 2009, 11:42   #163
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Quote:
Originally Posted by Supamax View Post
So the BAWARP project is dead?
Noooooooooo.....

In an old post DrF said: "Theres some trackdisk replacement thingy on Aminet somewhere that allows 930ish K I think on a disk". Perhaps studying that you could see how to slow down the drive... just an idea. I don't know if the greater capacity is achieved by slowing the drive down
I haven't seen the code, but my guess is 930KB on a disk is achieved by reducing the inter sector gap sizes, not by slowing the drive.

Quote:
Jope wrote: "There are schematics and info regarding the 150rpm modification on Aminet. The modified drives are told to be very unstable at 150rpm, barely able to read the disks.."
If we use modified drives, not everyone will be able to use the imager in a standard Amiga, which was the point.

Quote:
This is probably silly, but: if the drive motor is not a stepper motor (I mean the motor which makes the floppy surface spin, not the stepper motor which moves the heads), couldn't we use some sort of addictional circuit (hardware pwm) to slow it down 50% (150 rpm)? Such a project could be also useful to slow down PC HD drives (with a switch, connected to the HD sensor) so that they can be used in HD-mode on Amigas...
Hummm, I thought that was pretty much what I tried. There used to be multi-speed floppy drives, but these are hard to find.

I still think rawread could be made to work in a standard Amiga 500/600 using DMA and a little trick in the Index detection interrupt. But I won't mess with Toni's code without his permission.

Off-Topic but funny: My boss got notified he would be inspected by ASSOFT (portuguese anti software piracy organization). What did he do when he got home? Put all his Amiga floppies in a large bag and burn them, because he thought he would get fined because of them. What a waste. He might as well have given them to me.

Well. My ARM board and some of the connectors needed have arrived. I'm close to starting the USB floppy controller.
BlueAchenar is offline  
Old 20 January 2009, 11:55   #164
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by BlueAchenar View Post
My boss got notified he would be inspected by ASSOFT
I can't help but chuckle I wonder who invented the name for that company

Quote:
Originally Posted by BlueAchenar View Post
What did he do when he got home? Put all his Amiga floppies in a large bag and burn them, because he thought he would get fined because of them. What a waste. He might as well have given them to me.
When did that happen? Recently? If so, your boss is a m*r*n. Who cares about pirated Amiga Stuff nowadays?
StingRay is offline  
Old 20 January 2009, 12:02   #165
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Quote:
Originally Posted by StingRay View Post
I can't help but chuckle I wonder who invented the name for that company



When did that happen? Recently? If so, your boss is a m*r*n. Who cares about pirated Amiga Stuff nowadays?
About a week ago.
BlueAchenar is offline  
Old 20 January 2009, 12:05   #166
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by BlueAchenar View Post
About a week ago.
Too bad about the disks then :/ Even if they would have found them I doubt they would have even been able to check the content.
StingRay is offline  
Old 20 January 2009, 12:08   #167
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Quote:
Originally Posted by StingRay View Post
Too bad about the disks then :/ Even if they would have found them I doubt they would have even been able to check the content.
Most likely. There are still many people with Amigas in my town though. Someday I'll try to check for some rare games.
BlueAchenar is offline  
Old 20 January 2009, 12:18   #168
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Ok. I've decided to make a imager which dumps extended ADFs for fun. I still want to test the error correction routines.
BlueAchenar is offline  
Old 20 January 2009, 14:27   #169
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Could someone test drive this? It should write a (large) raw image (not adf) of the disk. A500/A600 will also be fine. I need this data to complete the program.
Attached Files
File Type: zip AleWarp.zip (6.2 KB, 137 views)

Last edited by BlueAchenar; 20 January 2009 at 15:41.
BlueAchenar is offline  
Old 20 January 2009, 15:41   #170
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Anyone? Looks like I'll have to wait for prowler.
BlueAchenar is offline  
Old 20 January 2009, 15:44   #171
TCD
HOL/FTP busy bee
 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,988
@BA
Have you ever considered drinking less coffee mate? One and a half hour and you're gettin' impatient, ts ts ts
TCD is offline  
Old 20 January 2009, 15:49   #172
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Quote:
Originally Posted by TheCyberDruid View Post
@BA
Have you ever considered drinking less coffee mate? One and a half hour and you're gettin' impatient, ts ts ts
I like to do things fast. That's probably why I have plenty of spare time at work.
BlueAchenar is offline  
Old 20 January 2009, 16:27   #173
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Could someone tell me how do I detect the CPU model the program is running on?

Last edited by BlueAchenar; 20 January 2009 at 16:38.
BlueAchenar is offline  
Old 20 January 2009, 16:44   #174
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Ok. This one will DMA read 5 copies of each track and dump them to a file. You need 150000 bytes chip ram available. I need this information to implement the error correction and conversion to extended ADF.
Attached Files
File Type: zip AleWarp.zip (6.3 KB, 129 views)
BlueAchenar is offline  
Old 20 January 2009, 17:24   #175
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by BlueAchenar View Post
Could someone tell me how do I detect the CPU model the program is running on?
You need to check Excec's ATTNFLAGS.

Code:
    move.l    $4.w,a6            ; get execbase
    moveq    #0,d2
    move.b    $129(a6),d2
now you can check for the different CPU types in d2, bit 0-3, 60010-68040, bit 7 68060.


Eg. if bit1 is set the CPU is at least an 68020.

Last edited by StingRay; 20 January 2009 at 19:22. Reason: fixed a small error
StingRay is offline  
Old 20 January 2009, 17:38   #176
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Quote:
Originally Posted by StingRay View Post
You need to check Excec's ATTNFLAGS.

Code:
    move.l    $4.w,a6            ; get execbase
    moveq    #0,d2
    move.b    $129(a6),d2
now you can check for the different CPU types in d2, bit 0-3, 60000-68040, bit 7 68060.


Eg. if bit1 is set the CPU is at least an 68020.
Thanks mate!

You mean something like this right?

Code:
static ULONG GetCPU()
{
    UBYTE *sys = *(UBYTE **)4;
    UBYTE cpubits = sys[0x129];
    if(cpubits & 0x80)
    {
        return 68060;
    }
    if(cpubits & 0x08)
    {
        return 68040;
    }
    if(cpubits & 0x04)
    {
        return 68030;
    }
    if(cpubits & 0x02)
    {
        return 68020;
    }
    if(cpubits & 0x01)
    {
        return 68010;
    }
    return 68000;
}
Edit: I cleaned it up to this:

Code:
static ULONG GetCPU()
{
    if(SysBase->AttnFlags & AFF_68060)
    {
        return 68060;
    }
    if(SysBase->AttnFlags & AFF_68040)
    {
        return 68040;
    }
    if(SysBase->AttnFlags & AFF_68030)
    {
        return 68030;
    }
    if(SysBase->AttnFlags & AFF_68020)
    {
        return 68020;
    }
    if(SysBase->AttnFlags & AFF_68010)
    {
        return 68010;
    }
    return 68000;
}

Last edited by BlueAchenar; 20 January 2009 at 17:51.
BlueAchenar is offline  
Old 20 January 2009, 18:45   #177
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
New version. Improved compatibility with different amiga models and more options. I still need a raw dump though. Run the app with no args for options.
Attached Files
File Type: zip AleWarp.zip (8.6 KB, 128 views)
BlueAchenar is offline  
Old 20 January 2009, 19:01   #178
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
I'll test it on my a4k in a few minutes You "GetCPU" code looks fine to me.

Edit: Ok, tested it. It doesn't seem to work correctly. You parser doesn't seem to accept any name for the image. I tried it with:

1. alewarp ram:test -> Invalid Argument 'RAM:TEST'
2. alewarp image=ram:test -> Invalid Argument 'IMAGE=RAM:TEST'

So I suppose that's a bug. Also, when the program is started without any arguments you should just print the help text and quit instead of still trying to read a disk then (without any info for the user to see, I first thought your program crashed).
Unfortunately it doesn't seem to read any tracks anyway when I start it without arguments.

Last edited by StingRay; 20 January 2009 at 19:14.
StingRay is offline  
Old 20 January 2009, 19:09   #179
BlueAchenar
Not dead yet!!! :D
 
BlueAchenar's Avatar
 
Join Date: Feb 2008
Location: Aveiro / Portugal
Age: 42
Posts: 690
Thanks mate! "alewarp dh0:image" will do just fine. If it works, uploading the image to me will be an all different matter (it's going to be biiiiiiiig)
BlueAchenar is offline  
Old 20 January 2009, 19:19   #180
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by BlueAchenar View Post
"alewarp dh0:image" will do just fine.
Nope, as said, it doesn't seem to accept any "image" parameters.
"alewarp dh0:image" -> Invalid argument 'dh0:image'

You need to fix your parser.
StingRay is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vectrex collection with 3D Imager, light-pen and complete set of games Tolls Retrogaming General Discussion 5 24 April 2011 13:45
Disk-2-Disk by Central Coast Software (full or demo version) mark_k request.Apps 3 09 July 2006 14:10
How can a floppy be a PC 720k disk and an Amiga 880k disk at the same time? dreamkatcha New to Emulation or Amiga scene 33 24 July 2004 14:25
Newbie question: how to access files on an Amiga disk using PC disk drive? Nethead New to Emulation or Amiga scene 5 04 July 2003 23:07
G Soft Audio Imager Syko support.Hardware 0 13 November 2002 18:48

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16075 seconds with 14 queries