forum home page
register faq member list calendar search
MacShock.com - Apple Forums
Reload this Page
Old 01-03-2012, 07:10 AM
Steve Nickolas
Guest
 
Posts: n/a
Default .DO from BASIC xD;

http://xtra.usotsuki.info/imgr.dsk.gz

This uses a small ASM stub (the CA65 source is on the disk image, lol) to
do the dirty work.

It can create partial and total disk images, although I haven't tested it
with total images, of 5.25" disks in slot 6 (either drive). I wrote it
mainly because I'm working on a crack project that would benefit from it.

-uso.
  Reply With Quote
Old 01-03-2012, 12:30 PM
David Schmidt
Guest
 
Posts: n/a
Default .DO from BASIC xD;

On 1/3/2012 12:55 AM, Steve Nickolas wrote:
> It can create partial and total disk images [...]


What does that mean, exactly? Is that like formatting - it writes out a
filesystem structure? Or does it copy disks? Or...?
  Reply With Quote
Old 01-03-2012, 02:30 PM
datawiz
Guest
 
Posts: n/a
Default .DO from BASIC xD;

It dumps a track, or range of tracks, that you specify and BSAVEs them
as a single file on a ProDOS disk. The result is the same as a disk
image of you specify all tracks to copy.

I see how this fits into your Donkey Kong project, Steve.
Best of luck and thanks for the code!

Rich


On Jan 3, 6:44*am, David Schmidt <schmi...@my-deja.com> wrote:
> On 1/3/2012 12:55 AM, Steve Nickolas wrote:
>
> > It can create partial and total disk images [...]

>
> What does that mean, exactly? *Is that like formatting - it writes out a
> filesystem structure? *Or does it copy disks? *Or...?


  Reply With Quote
Old 01-03-2012, 04:50 PM
David Schmidt
Guest
 
Posts: n/a
Default .DO from BASIC xD;

On 1/3/2012 9:57 AM, datawiz wrote:
> It dumps a track, or range of tracks, that you specify and BSAVEs them
> as a single file on a ProDOS disk.


Ah, got it. Of course you'd need a destination storage device larger
than the source to actually create a full image. :-)
  Reply With Quote
Old 01-03-2012, 08:30 PM
Steve Nickolas
Guest
 
Posts: n/a
Default .DO from BASIC xD;

On Tue, 3 Jan 2012, David Schmidt wrote:

> On 1/3/2012 12:55 AM, Steve Nickolas wrote:
>> It can create partial and total disk images [...]

>
> What does that mean, exactly? Is that like formatting - it writes out a
> filesystem structure? Or does it copy disks? Or...?
>


It creates a .dsk file.

Currently for some mysterious reason it leaves off the last track when I
tell it 0,34... o.o;

-uso.
  Reply With Quote
Old 01-03-2012, 08:30 PM
Steve Nickolas
Guest
 
Posts: n/a
Default .DO from BASIC xD;

On Tue, 3 Jan 2012, David Schmidt wrote:

> On 1/3/2012 9:57 AM, datawiz wrote:
>> It dumps a track, or range of tracks, that you specify and BSAVEs them
>> as a single file on a ProDOS disk.

>
> Ah, got it. Of course you'd need a destination storage device larger than
> the source to actually create a full image. :-)
>


Which is why I didn't initially test it on full disks >:P. Had to crack
out KEGS.

-uso.
  Reply With Quote
Old 01-03-2012, 08:30 PM
Antoine Vignau
Guest
 
Posts: n/a
Default .DO from BASIC xD;

On 3 jan, 21:38, Steve Nickolas <lyricalnan...@usotsuki.hoshinet.org>
wrote:
> On Tue, 3 Jan 2012, David Schmidt wrote:
> > On 1/3/2012 12:55 AM, Steve Nickolas wrote:
> >> It can create partial and total disk images [...]

>
> > What does that mean, exactly? *Is that like formatting - it writes out a
> > filesystem structure? *Or does it copy disks? *Or...?

>
> It creates a .dsk file.
>
> Currently for some mysterious reason it leaves off the last track when I
> tell it 0,34... o.o;
>
> -uso.


Your assemble code has one bug:

1=- 1=8 0=$ 1=LC"!.+ (0/1)

00/9006: A0 00 LDY #00
00/9008: 8C 05 90 STY 9005
00/900B: AD 04 90 LDA 9004
00/900E: 29 E0 AND #E0
00/9010: 18 CLC
00/9011: 4A LSR
00/9012: 4A LSR
00/9013: 4A LSR
00/9014: 4A LSR
00/9015: 4A LSR
00/9016: 8D B8 90 STA 90B8
00/9019: 29 1F AND #1F
00/901B: 18 CLC
00/901C: 0A ASL
00/901D: 0A ASL
00/901E: 0A ASL
00/901F: 8D B7 90 STA 90B7
00/9022: AD 03 90 LDA 9003
00/9025: 8D B4 90 STA 90B4
00/9028: A9 00 LDA #00

*?

Before $9019, perform a LDA $9004 again and that will work like a
charm.

Antoine
  Reply With Quote
Old 01-03-2012, 10:50 PM
Steve Nickolas
Guest
 
Posts: n/a
Default .DO from BASIC xD;

On Tue, 3 Jan 2012, Antoine Vignau wrote:

> Your assemble code has one bug:


Big surprise, lol... I always make silly mistakes. >_< Thanks... fixed.

http://xtra.usotsuki.info/imgr101.dsk.gz

Also fixed a typo in the BASIC side.

> Before $9019, perform a LDA $9004 again and that will work like a
> charm.


LOL, it's a good thing I keep the LST file handy. xD

-uso.
  Reply With Quote
Old 01-03-2012, 10:50 PM
Antoine Vignau
Guest
 
Posts: n/a
Default .DO from BASIC xD;

Good job, that works better and the extra PRINT is away too ;-)
Antoine
  Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:13 PM.
Copyright ©2007-2008 MacShock.com. Powered by vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.