English Amiga Board


Go Back   English Amiga Board > Requests > request.Apps

 
 
Thread Tools
Old 02 August 2018, 21:01   #1
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
Trackwriter only on one Side

Hi !

I am looking for a code or software allowing me to write data on a floppy disk at desired location
but only on one side (chosen when start this code).
Example:
Data available in memory in $20000
Length of $2C000

Need to write them on DF0 from the cylinder 00 sector00
but written without changing face so, once arrived at sector 11, do not change side and continue writing on the floppy to the next cylinder.


Thks a lot
Giants is offline  
Old 02 August 2018, 21:13   #2
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,081
I can't remember any tool to do this but it's easy to do with a few lines of code. Use trackdisk.device (DoIO) or any trackloader which allows to save data (such as Rob Northen's), create a list of offsets for your data and you can write the data exactly the way you want. Or simply write one track, skip one, write one track etc.
StingRay is offline  
Old 02 August 2018, 21:16   #3
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 50
Posts: 1,017
You can use Siegfried Copy to write one sided data, but you must know what you must do.
Don_Adan is offline  
Old 03 August 2018, 10:22   #4
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
StingRay : I you have this kind of code, i want it.
On my side, I can't create with my knowledge this code.

Siegfried Copy it is not a X-copy like ? no ?
I don't want copy a floppy or adf, I want to put some date (from ram or file) on specific cylinder and only on 1 side.
You sure Siegfried Copy can do this ?
Giants is offline  
Old 03 August 2018, 11:15   #5
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 792
Quote:
Originally Posted by Giants View Post
StingRay : I you have this kind of code, i want it.
On my side, I can't create with my knowledge this code.

Just find an example of how to use "trackdisk.device", there should be plenty of them..
hooverphonique is offline  
Old 03 August 2018, 11:56   #6
modrobert
old bearded fool

modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 51
Posts: 488
Does a single "track" (0-79) always involve both heads? Or is it head change depending on "odd" or "even" track?
modrobert is offline  
Old 03 August 2018, 13:18   #7
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
Well, If I'm not wrong, 'Single side' don't exist on Amiga.
Off course, You can find some game that have only data on One side but they used a specific trackloader.
Ex : IK+
http://sasfepu78.ddns.net/cgi-bin/IP...9_IKplus_AMIGA



If you use trackdisk.device (ak : jsr -1C8)
It's work with 11 sector, 80 cylinder with 2 sides
We can also work with another 'word' like sectors, track...
But like we saif in another thread : http://eab.abime.net/showthread.php?t=90102

Data start In a 'track' in sector 00 and going to Sector 10 (so 11 sectors)
then... change side and continue reading/writing the data on the 'new' 'track'
Track as Half cylinder

Solution is, like StingRay say, use a modify trackloader code.
I try to going this way.
Giants is offline  
Old 03 August 2018, 14:31   #8
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 50
Posts: 1,017
Quote:
Originally Posted by Giants View Post
StingRay : I you have this kind of code, i want it.
On my side, I can't create with my knowledge this code.

Siegfried Copy it is not a X-copy like ? no ?
I don't want copy a floppy or adf, I want to put some date (from ram or file) on specific cylinder and only on 1 side.
You sure Siegfried Copy can do this ?
With Siegried Copy you can write/read choosed tracks to/from disks/rad. But you must known what you want to do. You can write data to ram and write data from ram to disk.
Don_Adan is offline  
Old 03 August 2018, 15:01   #9
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 45
Posts: 6,988
Quote:
Originally Posted by Giants View Post
Well, If I'm not wrong, 'Single side' don't exist on Amiga.
Off course, You can find some game that have only data on One side but they used a specific trackloader.
Ex : IK+
http://sasfepu78.ddns.net/cgi-bin/IP...9_IKplus_AMIGA



If you use trackdisk.device (ak : jsr -1C8)
It's work with 11 sector, 80 cylinder with 2 sides
We can also work with another 'word' like sectors, track...
But like we saif in another thread : http://eab.abime.net/showthread.php?t=90102



Data start In a 'track' in sector 00 and going to Sector 10 (so 11 sectors)
then... change side and continue reading/writing the data on the 'new' 'track'
Track as Half cylinder

Solution is, like StingRay say, use a modify trackloader code.
I try to going this way.
Thats not what Stingray was saying. You don't need to modify any track loader at all to get it to do what you want.

You can use the Rob Northen loader to write your data in $1600 byte chunks, and then offset to the next track to write to.

So for instance we would start like this.

move.l #file_length,d7
moveq #0,d0 ;DF0 selected
moveq #$B,d1 ;Start write at sector 11 ($B)
lea data,a0 ;Pointer to data to write to disk
moveq #1,d3 ; Activate write disk
moveq #$B,d2 ;Write 11 sectors
loop_write:
lea trackbuffer,a1 ; Data area for trackbuffer
bsr rnc_load ;Write data
tst.l d0
bne disk_error
sub.l #$1600,d7 ;subtract last written track size from file length
bmi file_written ; If we have gone minus, write file complete
add.w #$b+$b,d1 ; Skip other side and get to next offset on same side
lea $1600(a0),a0 ;Get to next chunk of data to write
bra loop_write

disk_error:
bra disk_error

file_written:

Something along those lines will do what you require, you could do something similar with trackdisk device, just passing the various offsets as Stingray already described, but certainly no need to hack an existing loader.
Galahad/FLT is offline  
Old 03 August 2018, 15:07   #10
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
I try Siegried Copy and I was not convinced.
It's not really suitable for what I want to do and with on several marges files.

I see this post : http://eab.abime.net/showthread.php?t=16314
And I see this : Writefile.s - Writes the specified file to the master disk

Maybe, with this code and some modification...
Giants is offline  
Old 03 August 2018, 15:10   #11
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
Galahad/FLT : ok, but I already search for 'Rob Northen loader' ource code and I don't find it.
Giants is offline  
Old 03 August 2018, 20:14   #12
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 45
Posts: 6,988
Quote:
Originally Posted by Giants View Post
Galahad/FLT : ok, but I already search for 'Rob Northen loader' ource code and I don't find it.
Search no more


http://flashtro.com/rnc-sector-laoder-shortened/
Galahad/FLT is offline  
Old 03 August 2018, 21:20   #13
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
Gooood
Thks.

Last Time : Hummm, Don't think this version take D3 for Read/Write configuration...
I don't see, in the source code D3 opération like this.

Last edited by Giants; 03 August 2018 at 22:39.
Giants is offline  
Old 03 August 2018, 23:39   #14
heavy
Registered User
 
Join Date: Jun 2007
Location: europe
Posts: 182
is Blood Money use this kind of custom trackloader ??

quote from whdload :
Quote:
Loader
subq.w #1,d0 ; num track
btst #2,$BFD100 ; test side 0 or 1
bne.b .side_ok ; side 1 ok
add.w #79,d0 ; if side 0 then num track +79
.side_ok
mulu #$1838,d0 ; num track * custom size track
mulu #$1838,d1 ; len track * custom size
moveq #0,d2
move.l resload(pc),a2
jsr resload_DiskLoad(a2)
heavy is offline  
Old 04 August 2018, 00:47   #15
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 45
Posts: 6,988
Quote:
Originally Posted by heavy View Post
is Blood Money use this kind of custom trackloader ??

quote from whdload :
No, track size is too big for standard AmigaDOS.
Galahad/FLT is offline  
Old 04 August 2018, 00:51   #16
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 45
Posts: 6,988
Quote:
Originally Posted by Giants View Post
Gooood
Thks.

Last Time : Hummm, Don't think this version take D3 for Read/Write configuration...
I don't see, in the source code D3 opération like this.
Check out the Zone, official Rob Northen file for sector loader
Galahad/FLT is offline  
Old 04 August 2018, 11:56   #17
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
Well... a lot of 'trackload' thing in the zone...
I find 2 RNC binarie code.
Same code but one is shortest than other.
All start with the same code and for me, Don't work in 'writing' mode.
Is strange that is hard to find a trackloader who can also write I think.

Here, a zip of 2 RNS rnc trackloader I find, but don't think is work in 'writing' mode and, pretty sure, if it's work in writing mode, not with D3=1

Find in another thread of RN Loader :
d3.w = Operation (read = 0, write = 1, format = 2)
Attached Files
File Type: zip bin.zip (4.5 KB, 21 views)
Giants is offline  
Old 04 August 2018, 12:05   #18
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 604
Solid Gold which has src available on aminet has a trackloader with write support.
alpine9000 is offline  
Old 04 August 2018, 12:23   #19
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 56
Ah ?
Thks, I going to see that.

Seems to be good but... but not 'compatible' for asm-one
Macro and some another things are no loved by asmOne and I use AsmOne
Arg...

Last edited by Giants; 04 August 2018 at 13:19.
Giants is offline  
Old 04 August 2018, 19:05   #20
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 45
Posts: 6,988
The "dosio.s" file I provided is the RNC sector loader with read/write support, its listed as such in the official Rob Northen text that accompanies the directory I have.

How are you using this loader? Are you correctly shutting down the system or disabling multitasking and allocating correct memory and such for the various things?

Trackbuffer MUST be in chip ram.

I'd like to know what framework code you're using to utilise the loader because i'm not convinced you're using it right.
Galahad/FLT 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
Dizzy and The Other Side (PC) Neil79 Retrogaming General Discussion 0 23 June 2014 00:11
Upper side on a disk Galder support.Hardware 1 26 April 2014 16:37
Five-A-Side Soccer Specksynder request.Old Rare Games 14 06 December 2010 21:26
Five a side soccer lolafg Games images which need to be WHDified 6 11 January 2010 20:41
Five a Side Soccer do not work from HD olesio support.Games 24 10 January 2010 16:07

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 05:40.


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