Author Topic: Amstrad CPC WiFi  (Read 331119 times)

0 Members and 1 Guest are viewing this topic.

Offline breiztiger

  • CPC464
  • **
  • Posts: 25
  • Liked: 28
  • Likes Given: 4
Re: Amstrad CPC WiFi
« Reply #2525 on: 14:25, 25 October 19 »
hi


is it possible to add a key at boot time to cancel autoexec.bas to run ?


because i have make a autoexec to launch rpm for exemple that i can't quit with the esc key (like in stock cpc, i think the m4 catch the esc ...)


i must  erase autoexec on a pc


thanks in adavance

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #2526 on: 10:24, 26 October 19 »
is it possible to add a key at boot time to cancel autoexec.bas to run ?


because i have make a autoexec to launch rpm for exemple that i can't quit with the esc key (like in stock cpc, i think the m4 catch the esc ...)

It's possible, but it was a lot of hacking about (and a long time ago) to get the autorun feature to work, one of the side effects was ESC to break not working. Maybe I will re-visit it some day.
However I guess you could do some Basic key checking in your autoexec.bas to skip ie. launching rpm. Say hold space to exit to basic.

Quote
i must  erase autoexec on a pc
You can also eject the microSD, turn on the CPC and insert the microSD, then erase (or rename) it from the CPC.

Offline breiztiger

  • CPC464
  • **
  • Posts: 25
  • Liked: 28
  • Likes Given: 4
Re: Amstrad CPC WiFi
« Reply #2527 on: 10:27, 26 October 19 »
thanks for the tip

Offline shifters74

  • CPC464
  • **
  • Posts: 49
  • Country: gb
  • Liked: 38
  • Likes Given: 13
Re: Amstrad CPC WiFi
« Reply #2528 on: 12:23, 17 November 19 »
Hi all,
i am trying to build xfer on a ubuntu 18.04 machine (GCC 5.5.0_4) so i can transfer files to the M4 but it does not compile from source and i get the following error: 

gcc -O2  -W -I. -c parse.c -o parse.o
parse.c:10:25: error: conflicting types for 'strncasecmp'
        #define strnicmp strncasecmp
                         ^
parse.c:15:5: note: in expansion of macro 'strnicmp'
 int strnicmp(char const *a, char const *b, unsigned int lenght)
     ^
In file included from /usr/include/string.h:431:0,
                 from parse.c:6:
/usr/include/strings.h:120:12: note: previous declaration of 'strncasecmp' was here
 extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
            ^
parse.c: In function 'strncasecmp':
parse.c:19:17: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
         int d = tolower(*a) - tolower(*b);
                 ^
Makefile:26: recipe for target 'parse.o' failed
make: *** [parse.o] Error 1

Any help appreciated!
shifters

Offline pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 580
  • Country: au
    • index.php?action=treasury
  • Liked: 296
  • Likes Given: 167
Re: Amstrad CPC WiFi
« Reply #2529 on: 13:01, 17 November 19 »
Simple fix: in parse.c change
Code: [Select]
#ifdef __unix__ to
Code: [Select]
#ifndef __unix__ or just delete that entire block.

Offline shifters74

  • CPC464
  • **
  • Posts: 49
  • Country: gb
  • Liked: 38
  • Likes Given: 13
Re: Amstrad CPC WiFi
« Reply #2530 on: 13:05, 17 November 19 »
Great!!
Worked like a charm!!
Many thanks
Shifters

Offline SOS

  • Supporter
  • CPC6128
  • *
  • Posts: 299
  • Country: de
  • Identity lost
    • index.php?action=treasury
  • Liked: 201
  • Likes Given: 179
Re: Amstrad CPC WiFi
« Reply #2531 on: 12:10, 13 December 19 »
I am using an M4 with 2.05B12 and trying to load YANCC with |romup and it seems to result in corrupt text in the rom slot with |m4help and a non-functioning rom.
I ran the config.bas to create the configured rom (basically all N options) and then |fcp those over to the m4 so i can |romup them which seem to succeed but an M4 reset shows the corrupt text in the rom slot with |m4help and neither commands works.

I tried slots 1, 2, 11 and 12 out of interest but YANCC-CO.rom and Launch.rom both do not seem to install correctly.
Any one else tried to install YANCC140418b with 2.05B12???
Sorry, today seen your mail, do you have still problems? (yes: write me a PM)

Offline shifters74

  • CPC464
  • **
  • Posts: 49
  • Country: gb
  • Liked: 38
  • Likes Given: 13
Re: Amstrad CPC WiFi
« Reply #2532 on: 20:57, 13 December 19 »
Sorry, today seen your mail, do you have still problems? (yes: write me a PM)
Hi SOS,
i tried again today with the same versions and all worked fine!!
Sorry must have been user error i.e. me!!!  :doh:

cheers
shifters