WGET65 [message #372309] |
Thu, 16 August 2018 09:00 |
|
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 |
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 |
|
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 |
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 #372355 is a reply to message #372353] |
Fri, 17 August 2018 02:02 |
|
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 #372365 is a reply to message #372314] |
Fri, 17 August 2018 05:36 |
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 |
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 |
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 #372369 is a reply to message #372366] |
Fri, 17 August 2018 06:31 |
|
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 #372375 is a reply to message #372372] |
Fri, 17 August 2018 08:09 |
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
|
|
|