Author Topic: How does the M4 launch files?  (Read 331 times)

0 Members and 1 Guest are viewing this topic.

Offline kolleykibber

  • CPC664
  • ***
  • Posts: 50
  • Country: gb
  • Liked: 40
  • Likes Given: 31
How does the M4 launch files?
« on: 13:57, 29 April 21 »

I was wondering how @Duke 's amazing M4 board manages to get the CPC to launch files over wifi.


My guess would be it rewrites the rom initialisation routine before it reboots the cpc? Or is there some other clever trickery going on?




Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.259
  • Country: dk
    • spinpoint.org
  • Liked: 1473
  • Likes Given: 1206
Re: How does the M4 launch files?
« Reply #1 on: 15:33, 29 April 21 »
I was wondering how @Duke 's amazing M4 board manages to get the CPC to launch files over wifi.


My guess would be it rewrites the rom initialisation routine before it reboots the cpc? Or is there some other clever trickery going on?

You can always take a look at the rom source code:
https://github.com/M4Duke/m4rom

It uses the "autoexec patch".  I remember it got a bit complicated back in the day, probably there is cleaner methods one could write :)
- And yes parameters are written to the m4 rom before resetting.