Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » WGET65
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
WGET65 [message #372309] Thu, 16 August 2018 09:00 Go to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

Which Byte of WGET65 has to be changed to change the Slot of the Uthernet card from the set Slot 3 to another?
Re: WGET65 [message #372310 is a reply to message #372309] Thu, 16 August 2018 09:46 Go to previous messageGo to next message
David Schmidt is currently offline  David Schmidt
Messages: 993
Registered: October 2012
Karma: 0
Senior Member
On 8/16/2018 9:00 AM, 6502enhanced@gmail.com wrote:
> Which Byte of WGET65 has to be changed to change the Slot of the Uthernet card from the set Slot 3 to another?

It seems there is a config file, ethernet.slot, that defines it:
wget65.c, line 503:
file = open(self_path("ethernet.slot"), O_RDONLY);
Re: WGET65 [message #372314 is a reply to message #372310] Thu, 16 August 2018 10:45 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

Thanks!

Well, but I don't know how to use this. To change the Slot in Telnet65 was easy - it was the fourth Byte. So I can use Disk Fixer V4.0 and change it very fast to every Slot I need. Hoped this could work also with WGET65 ...
Re: WGET65 [message #372315 is a reply to message #372314] Thu, 16 August 2018 10:52 Go to previous messageGo to next message
David Schmidt is currently offline  David Schmidt
Messages: 993
Registered: October 2012
Karma: 0
Senior Member
On 8/16/2018 10:45 AM, 6502enhanced@gmail.com wrote:
> Thanks!
>
> Well, but I don't know how to use this. To change the Slot in Telnet65 was easy - it was the fourth Byte. So I can use Disk Fixer V4.0 and change it very fast to every Slot I need. Hoped this could work also with WGET65 ...

Oh, there's a byte in there somewhere.

ip65.h, line 29:
#define DRV_INIT_DEFAULT 3 // Apple II slot number

wget65.c, line 470:
int main(int, char *argv[])
{
uint16_t i;
char *arg;
char device;
uint8_t drv_init = DRV_INIT_DEFAULT;

Where that ends up in the built binary is going to be tricky to find...
Re: WGET65 [message #372331 is a reply to message #372314] Thu, 16 August 2018 01:14 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Wizard1969

DiskFixer 4.0 , is that available somewhere? I could only find older versions
on Asimov.
Re: WGET65 [message #372353 is a reply to message #372331] Fri, 17 August 2018 01:00 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

On the disk "Disk_Copieurs_LoGo" is that version:

https://mirrors.apple2.org.za/ftp.apple.asimov.net/images/no n-english/french/logo/
Re: WGET65 [message #372355 is a reply to message #372353] Fri, 17 August 2018 02:02 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

OK - I got it:

"Wget65 presumes the Ethernet card to reside in slot 3. If however your Ethernet card resides in a different slot you can create a file named ETHERNET..SLOT. Only the first byte of that file is relevant. This byte can either represent your Ethernet card slot as binary value (e.g. $04 for slot 4), as ASCII digit (e.g. $34 for slot 4) or as Apple TEXT digit (e.g. $B4 for slot 4)."

https://github.com/cc65/ip65/wiki/Wget65

Don't know why but the created text file always set the Slot to 4 - also when I rote $B5? But then I changed the first byte of that text file with disk fixer to "25" and the Slot was set to Slot 5!
Re: WGET65 [message #372364 is a reply to message #372309] Fri, 17 August 2018 05:31 Go to previous messageGo to next message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
On Thu, 16 Aug 2018 06:00:12 -0700 (PDT), 6502enhanced@gmail.com
wrote:

> Which Byte of WGET65 has to be changed to change the Slot of the Uthernet card from the set Slot 3 to another?

Have you considered to take a look at the documentation?

For your convenience here's the link:
https://github.com/cc65/ip65/wiki/Date65

Regards,
Oliver
Re: WGET65 [message #372365 is a reply to message #372314] Fri, 17 August 2018 05:36 Go to previous messageGo to next message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
On Thu, 16 Aug 2018 07:45:55 -0700 (PDT), 6502enhanced@gmail.com
wrote:

> Well, but I don't know how to use this.

Have you considered to ask?

> To change the Slot in Telnet65 was easy - it was the fourth Byte.

Other users considered this the opposite of easy ;-)

> Hoped this could work also with WGET65 ...

Nope, it doesn't - as documented...

Telnet65 is an assembly program without file I/O. Therefore it was
appropriate to configure the slot inside the binary.

Wget65 is a C program. There's no direct control what ends up where in
the binary. It does file I/O by design so it's appropriate to
configure the slot in a config file.

Regards,
Oliver
Re: WGET65 [message #372366 is a reply to message #372355] Fri, 17 August 2018 05:40 Go to previous messageGo to next message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
> OK - I got it: [...]

Great :-)


> Don't know why but the created text file always set the Slot to 4 - also wh=
> en I rote $B5? But then I changed the first byte of that text file with dis=
> k fixer to "25" and the Slot was set to Slot 5!

If you are able to set the fourth byte in Telnet65 to the desired slot
then why aren't you able to set the first byte in ethernet.slot to the
desired slot ?!?

The from my POV simplest way:

CALL-151
1000:04
CRTL-C
BSAVE ETHERNET.SLOT,A$1000,L1

Regards,
Oliver
Re: WGET65 [message #372367 is a reply to message #372315] Fri, 17 August 2018 05:46 Go to previous messageGo to next message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
> Oh, there's a byte in there somewhere.
[...]
> #define DRV_INIT_DEFAULT 3 // Apple II slot number
[...]
> Where that ends up in the built binary is going to be tricky to find...

....and when your car is out of fuel, you turn it upside down, drill a
hole in the tank and use a funnel to put the gas into. But don't
forget to close the hole with a cork to keep the gas from dripping out
when you turn back the car.

Man, there's a config file !!!

And you really aren't able to create a config file then grab cc65 and
just rebuild the program with the settings you like.

Regards,
Oliver
Re: WGET65 [message #372368 is a reply to message #372364] Fri, 17 August 2018 06:22 Go to previous messageGo to next message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
> For your convenience here's the link:
> https://github.com/cc65/ip65/wiki/Date65

Sorry, of course:
https://github.com/cc65/ip65/wiki/Wget65

BTW: The ETHERNET.SLOT is just the same for both (and for HFS65).
Re: WGET65 [message #372369 is a reply to message #372366] Fri, 17 August 2018 06:31 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

>
> If you are able to set the fourth byte in Telnet65 to the desired slot
> then why aren't you able to set the first byte in ethernet.slot to the
> desired slot ?!?

As I wrote - I was able to do that - all is working perfectly all right now :)
Re: WGET65 [message #372370 is a reply to message #372364] Fri, 17 August 2018 06:33 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

Am Freitag, 17. August 2018 11:31:42 UTC+2 schrieb Oliver Schmidt:
> On Thu, 16 Aug 2018 06:00:12 -0700 (PDT),
> wrote:
>
>> Which Byte of WGET65 has to be changed to change the Slot of the Uthernet card from the set Slot 3 to another?
>
> Have you considered to take a look at the documentation?
>
> For your convenience here's the link:
> https://github.com/cc65/ip65/wiki/Date65
>
> Regards,
> Oliver


Yes, that was what I have done - but here:

https://github.com/cc65/ip65/wiki/Wget65

As written above - all is working fine now :)
Re: WGET65 [message #372371 is a reply to message #372365] Fri, 17 August 2018 06:34 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

>
> Have you considered to ask?
>


Yes, that was the reason why I posted it here ;)
Re: WGET65 [message #372372 is a reply to message #372367] Fri, 17 August 2018 06:38 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

Oh, and Oliver - thanks a lot for offering Wget65 - an awesome tool with the contiki browser!
Re: WGET65 [message #372375 is a reply to message #372372] Fri, 17 August 2018 08:09 Go to previous message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
On Fri, 17 Aug 2018 03:38:12 -0700 (PDT), 6502enhanced@gmail.com
wrote:

> Oh, and Oliver - thanks a lot for offering Wget65 - an awesome tool with the contiki browser!

Thanks a lot for the positve feedback - it's appreciated :-)

Regards,
Oliver
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Midi2Echo+ music conversion soon....
Next Topic: [announcement] Graffidisk, the Applesauce companion
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Apr 20 00:25:40 EDT 2024

Total time taken to generate the page: 0.02242 seconds