Author Topic: Amstrad CPC WiFi  (Read 624428 times)

0 Members and 1 Guest are viewing this topic.

Offline Animalgril987

  • Supporter
  • CPC6128
  • *
  • Posts: 231
  • Country: gb
    • Awards
Re: Amstrad CPC WiFi
« Reply #2675 on: 20:16, 29 July 21 »
If both ROMs are "background", then take a look at the firmware routines "SIDE CALL", or "FAR CALL". they might do want you want. And you could alway put a customised version of one of them into your ROM, to suit your needs. :D
like
0
No reactions

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2676 on: 18:30, 30 July 21 »
Well, I talked about problems with the Hack-Menu.
like
0
No reactions
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline caver99

  • CPC464
  • **
  • Posts: 21
    • Awards
Re: Amstrad CPC WiFi
« Reply #2677 on: 13:26, 01 August 21 »
is there anywhere one of these can be got today
like
0
No reactions

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 496
  • Country: de
    • Awards
Re: Amstrad CPC WiFi
« Reply #2678 on: 14:28, 01 August 21 »
is there anywhere one of these can be got today
Just send a msg to @Duke  :)
like
0
No reactions

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2679 on: 20:48, 01 August 21 »
Due to the chip shortage situation it is not possible for me to get new supplies of the STM chips used for either M4 nor Imperium Solo boards at the moment.
Resellers such as digikey, mouser, arrow have lead times at around 50 weeks for those chips.
Everything is going out on contracts to ie. car industry. I have tried multiple times to buy small batches (50+) from chinese resellers, but every time, even though paying several 100% over price, they eventually cancel the order and raise the price again, so I have not bothered to pursue this route any further and this includes utsource - before someone suggests that.

So as it is, it will be quite some time before I can produce new boards :/

Meanwhile I still add people to my waiting list, to when and if supply and prices get back to normal.
like
0
No reactions

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2680 on: 21:02, 01 August 21 »
Well, I want to access the M4 card from a ROM.

Do I need to do this using a routine in RAM, or is there a trick?

Could the M4 ROM be 'declared' as lower ROM for example for a short time, just to access the M4 ROM = lower ROM from an upper ROM?

Any tricks or ideas?

If you find it useful I can add the option to the new C_ROMLOW command:
C_ROMLOW            0x433D         Implemented v2.0.7. Map lower rom : data[0] = 0 system lower rom, 1 = lowerrom from romboard if enabled, 2 = lowerrom from HACK menu.

so 3 = M4 rom upper, mapped as lower ?

Otherwise it is the RAM way.
« Last Edit: 21:04, 01 August 21 by Duke »
like
0
No reactions

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2681 on: 14:49, 02 August 21 »
Sorry, I'm not into that stuff to much at the moment, but I will have a look later on. (Cause I just soldered the hack button on my boards few time ago).


Everything needed would be something like that:

- When the hack button is pressed: store the upper ROM number somewhere... (this is possible, since the hack menu does display that number)

- Do your hack stuff...

- When quitting hack menu: Restore previous upper ROM


Maybe some M4 user can do that. :-)
like
0
No reactions
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2682 on: 16:43, 02 August 21 »
- When the hack button is pressed: store the upper ROM number somewhere... (this is possible, since the hack menu does display that number)

- Do your hack stuff...

- When quitting hack menu: Restore previous upper ROM
This is already being done in the hack menu.

Have a looksy here:
The upper-rom number is stored here:
https://github.com/M4Duke/m4hackmenu/blob/master/nmirom.s#L102
(by the M4 hardware)

And it is restored here, with the jump back routine, which in the end goes to RAM 0xFFF0 :
https://github.com/M4Duke/m4hackmenu/blob/master/nmirom.s#L499

like
0
No reactions

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2683 on: 17:22, 02 August 21 »
Yes, and there we have the problem: Let's say Maxam or Protext currently exercises code in the upper ROM, then the hack menu will NOT return to ROM.


The hack menu needs to check if code is exercised in ROM or RAM. Do not jump to RAM in every case.


It's more clear if you use the hack button a couple of times when using a ROM program.
like
0
No reactions
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2684 on: 17:52, 02 August 21 »
Yes, and there we have the problem: Let's say Maxam or Protext currently exercises code in the upper ROM, then the hack menu will NOT return to ROM.


The hack menu needs to check if code is exercised in ROM or RAM. Do not jump to RAM in every case.


It's more clear if you use the hack button a couple of times when using a ROM program.
Yeah actually it hit me right after writing it, IF the upperrom was enabled, then crash and burn. Anyway will have to think of a fix. Now that it is open source anyone can "hack" into it and do a patch, so feel welcome :)
like
0
No reactions

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2685 on: 16:24, 13 September 21 »
Hi @Duke : Well, I had a look at the new M4 documentation, but somehow got lost. Maybe you could point me to documentation or coding examples (Z80 code) of the following:
- Read directory
- Change directory
- Read file
- Save file
- Erase file
- Remane file

All for the SD card of the M4 board. I really would appreciate some help here.  :) :) :)
like
0
No reactions
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2686 on: 19:14, 13 September 21 »
Hi @Duke : Well, I had a look at the new M4 documentation, but somehow got lost. Maybe you could point me to documentation or coding examples (Z80 code) of the following:
- Read directory
- Change directory
- Read file
- Save file
- Erase file
- Remane file

All for the SD card of the M4 board. I really would appreciate some help here.  :) :) :)

Most certainly.

You will in this example:
https://github.com/M4Duke/M4examples/blob/master/romup.s

Find reading and writing files natively without amsdos. Basically look at (/or copy) the functions fopen, fread, fwrite, fseek, fclose.

If you dig those functions I am sure the cd, erase and rename will be trivial. The directory can be more tricky. You can look at the m4 rom source code for directory function:
https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L2038

Let me know if it gives you problems, then I can probably setup another couple of examples.
You may look at the m4 code for unidos aswell, it should contain needed bits aswell.

like
0
No reactions

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.173
  • Country: es
  • " ... in space no one , can hear you scream ... "
    • https://auamstrad.es/
    • Awards
Re: Amstrad CPC WiFi
« Reply #2687 on: 21:15, 13 September 21 »
What about M7? ... 🤔🤔
like
0
No reactions
your amstrad news source in spanish language : https://auamstrad.es

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2688 on: 15:02, 14 September 21 »
What about M7? ... 🤔🤔
It's dead.
like
0
No reactions

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.381
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
    • Awards
Re: Amstrad CPC WiFi
« Reply #2689 on: 15:35, 14 September 21 »
It's dead.


Nooooooooooo! 😭😭😭😭
like
0
No reactions
IRC:  #Retro4All on Freenode

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.173
  • Country: es
  • " ... in space no one , can hear you scream ... "
    • https://auamstrad.es/
    • Awards
Re: Amstrad CPC WiFi
« Reply #2690 on: 17:01, 14 September 21 »
It's dead.


Too bad, 🥺🥺🥺
like
0
No reactions
your amstrad news source in spanish language : https://auamstrad.es

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2691 on: 04:07, 15 September 21 »
The directory can be more tricky. You can look at the m4 rom source code for directory function:
https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L2038
Thanks for all the links. I would say, a simple example would be good for: Read SD card directory contents (actual DIR level) to RAM (fixed address). Something basic. The example in your ROM is actually quite complex.  ;) :)
like
0
No reactions
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2692 on: 21:21, 16 September 21 »
Thanks for all the links. I would say, a simple example would be good for: Read SD card directory contents (actual DIR level) to RAM (fixed address). Something basic. The example in your ROM is actually quite complex.  ;) :)

No problem.
I made a quick example for you here:
https://github.com/M4Duke/M4examples/blob/master/getdir.s

As you did not need any display code, I just make it start the hack menu after getting the directory.
You can display memory at 0x4000 to see the directory it retrieved (in the example from /m4 directory).

Hope it helps!
like
0
No reactions

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2693 on: 01:00, 17 September 21 »
Thank you very much!!! That's great!!!
like
0
No reactions
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Online pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 810
  • Country: au
    • index.php?action=treasury
    • Awards
Re: Amstrad CPC WiFi
« Reply #2694 on: 15:57, 17 September 21 »

Nooooooooooo! 😭😭😭😭
I'm working on something similar (but closer to the IZE80 from another recent thread) although I wish I knew why my GX4000 is halting the clock as soon as I assert /IORQ...  ??? I should probably use my 6128 instead but it takes up more space on the bench...
like
0
No reactions

Offline evolutional

  • CPC464
  • **
  • Posts: 5
  • Country: gb
    • Awards
Re: Amstrad CPC WiFi
« Reply #2695 on: 15:08, 29 September 21 »

Meanwhile I still add people to my waiting list, to when and if supply and prices get back to normal.

Please add me to that waiting list!
like
0
No reactions

Offline Fessor

  • CPC6128
  • ****
  • Posts: 265
  • Country: de
    • Awards
Re: Amstrad CPC WiFi
« Reply #2696 on: 17:43, 08 November 21 »
Please add me to the List too.
like
0
No reactions

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.262
  • Country: dk
    • spinpoint.org
    • Awards
Re: Amstrad CPC WiFi
« Reply #2697 on: 19:28, 08 November 21 »
Please add me to the List too.

Please pm me with your email address and type needed (EDGE or IDC) or even better email me at duke (a) spinpoint.org (so you whitelist my email).

Be aware that currently I cannot source the MCU's needed for neither M4 Board or Imperium Solo at normal prices, due to the chip shortage situation :/
However I have finally been able to get some SMALL batches of over priced chips for the M4 board, which I offer as an alternative (at the added cost) when I work my way down the list (which is about 60 M4 boards at the moment). So there is hope, but nothing quick, unfortunately.
like
2
Members reacted like:
Cwiiis,entelle42,

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.909
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Amstrad CPC WiFi
« Reply #2698 on: 22:02, 08 November 21 »
Well.... then this is the perfect time just to think maybe about emulating the Dobbertin HD20 hard-disc with the M4 board. This would be a dream.  :) :) :)
like
2
Members reacted like:
Duke,gms0012,
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)