News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Duke

Amstrad CPC WiFi

Started by Duke, 07:36, 07 May 16

Previous topic - Next topic

0 Members and 9 Guests are viewing this topic.

pabloingreece

Quote from: Duke on 09:23, 27 March 22
Quote from: pabloingreece on 17:30, 26 March 22@Duke I have a problem out of nowhere, the m4 stop booting with the information of the card in the CPC. I tried to put different firmware versions, the report.txt says that programming is successful, but the card is not working properly.

What can I do to revive it?

Thanks. Also if there is a chance to order a new card (2019 version) I would like to proceed. Please let me know :)

Greetings!
You can send it back to me for a checkup.
As for a new M4 board, there is 100+ people on waiting list, to when I get new supplies of the STM chips, these are the worst to get apparently, due to chip shortage :/

Hello Duke can you please send me your address in order to send you my damaged card? Thanks.

Duke

Quote from: pabloingreece on 11:38, 08 May 22Hello Duke can you please send me your address in order to send you my damaged card? Thanks.


I already did 27th of March 2022 via our email correspondance.

pabloingreece

You're right, sorry for that.

I'll send it this week, hopefully, let me know whenever you receive it :)

GUNHED

Quote from: Duke on 19:21, 16 September 21
Quote from: GUNHED on 02:07, 15 September 21Thanks 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!
The example works great for all sub-directories. But somehow I don't manage to set the path to the root directory of the SD card.

I tried:
- "/"
- " / "
- &00,&00

But if I'm currently in a sub-directory I can't get back to the root.

Can somebody please let me know which string to enter to go back to the M4 root directory?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

francouai

spinpoint.org is down since few days.
What's wrong? :o
--
francois

Shaun M. Neary

It's not do in terms of a website, the Apache service is actually running.
Looks more like a web config issue causing the site not to display.
Currently playing on: 2xCPC464, 1xCPC6128, 1x464Plus, 1x6128Plus, 2xGX4000. M4 board, ZMem 1MB and still forever playing Bruce Lee.
No cheats, snapshots or emulation. I play my games as they're intended to be played. What about you?

Duke

#2756
Quote from: francouai on 06:42, 25 July 22spinpoint.org is down since few days.
What's wrong? :o
Not sure what is wrong. I on vacation until next week. I think my web host has issues, so if it is not up before, I will deal with it when I get back.

francouai

I sent you an email to your spinpoint.org account and it failed too.
--
francois

robcfg

I've noticed that also the url solver does weird stuff:

You cannot view this attachment.

Duke

Quote from: francouai on 07:43, 27 July 22I sent you an email to your spinpoint.org account and it failed too.
The server is up again now https://www.spinpoint.org , due to a failure at my webhost it was moved to another server with a new IP. The IP had to be updated in the dns records, this is done now.
Any mails for the last week to my @spinpoint.org address are lost, so please mail me again.

GUNHED


About Switching to sub directory and then back to root in the M4 SD-card: 

The example in Dukes provious post works great to switch to any kind of sub-directory. 
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Duke

Quote from: GUNHED on 21:06, 07 August 22About Switching to sub directory and then back to root in the M4 SD-card:

The example in Dukes provious post works great to switch to any kind of sub-directory.
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Are you using C_CD command?

GUNHED

Quote from: Duke on 05:31, 08 August 22
Quote from: GUNHED on 21:06, 07 August 22About Switching to sub directory and then back to root in the M4 SD-card:

The example in Dukes provious post works great to switch to any kind of sub-directory.
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Are you using C_CD command?

Yes. Which parameter do I need to use if I want to switch from a subdirectory (of a subdirectory) back to root?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Duke

#2763
Quote from: GUNHED on 15:41, 10 August 22
Quote from: Duke on 05:31, 08 August 22
Quote from: GUNHED on 21:06, 07 August 22About Switching to sub directory and then back to root in the M4 SD-card:

The example in Dukes provious post works great to switch to any kind of sub-directory.
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Are you using C_CD command?

Yes. Which parameter do I need to use if I want to switch from a subdirectory (of a subdirectory) back to root?
You can use "/",0 or "\",0 to go back to root directory.
And "..",0 to go back one sub-directory.

This is what the |CD rsx command uses. You can see how it works in the m4rom source aswell. Maybe you need to reset C_DIRSETARGS, if it fails to work for displaying your directory.

GUNHED

I'll have a try. Thanks.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

RobertM

Hi, I bough a M4 board a long time ago and the system was put away for years. I have recently set it up again and all works fine except one issue.

The CPC 6128 has an internal 3.5" floppy drive which I wan to use but I only have new blank IBM formatted disks.

Everything even games that have their own loader keep trying to read from internal 3.5" (light comes on).

I copied the .DSK file to the SD via wifi and I can do a |DIR and see all the files including PIP.COM but if I try |cpm it reads the internal drive and I have to get into CPM as far as I know to use a utility (I thought PIP) for format real disks.

Can anyone help please.

HAL6128

#2766
|CPM only works with an internal drive(s) because it don't "know" about the M4 and DSK images. It tries to reach your floppy drive due to its internal configuration.

Depends on what you want to do?

Assuming (from your chat) you try to do something with CPM & PIP.COM? Copying something or investigating files? Formatting with PIP (is that possible - never heard of it)?

If you want to work with CP/M together with a M4 board my recommendation is: try HDCPM ( https://www.cpcwiki.eu/index.php/HDCPM ). It's really cool and better than working with a floppy drive because you don't need it any more apart from copying some original files to your "hard drive".

...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

RobertM

OK I have HDCPM loaded - same problem

I wand to copy a .DSK file on the M4 SD to an actually floppy disk.

I ordered a GOTEK. I planing on putting the .DSK on the GOTEK and copying from the GOTEC to the floppy as A: and B:

I want to transfer CPM from a DSK to an actual floppy disk.

HAL6128

If you want to create a CP/M System disc then don't do that from CPM itself but with help of SymbOS DSK2Floppy application or the M4FE tool from basic or... or... or.. . There are a lot of tools which can do this.
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

Prodatron

Quote from: HAL6128 on 16:07, 07 October 22If you want to create a CP/M System disc [...] but with help of SymbOS DSK2Floppy application
http://www.symbos.de/appinfo.htm?00015

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

GUNHED

#2770
Hi @Duke : There is a problem with files greater than 64 KB on the M4 SD-card.

Well, I'm just doing some functions to read files bigger than 64 KB into expansion RAM.

Now if there is a file of 96 KB for example, then it's file length is &018000 Bytes (64 KB and 32 KB).

The problem is that if I get the file size using function C_FSIZE then it returns a value of &8080. Because it seems to read the information from the header(file length) and adds the &80 bytes of the header itself.

The solution can be to add the over-byte of the file size:
The file size of a file up to 64 KB is located at relative header addresses &18 (low) and &19 (high).

To work with files greater than 64 KB the relative header address &1C contains the next 8 upper bits.

So file sizes (up to 16 MB) can encoded in:
bits 0...7 - relative header address &18
bits 8...15 - relative header address &19
bits 16...23 - relative header address &1C

This is true for binary files under FutureOS at least, they have the byte &82 (instead of &02 like in Amsdos) to indicate a binary file. It's at relative address &12.

It would be great if the 24 bit file length feature could be included into the M4 firmware.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Prodatron

#2771
Regarding to the documentation...

C_FSIZE   0x4311   Implemented v1.0.5. data = fd. Return data[0-3] = file size


...seems to return 4 bytes, or not? These 32bits are enough for filesizes of up to 4GB, which is what FAT32 can handle.


GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

Duke

@GUNHED C_FSIZE should return 4 bytes as @Prodatron wrote, it returns the actual size the file uses on the microSD card (meaning the amsdos header is part of the size if present). Atleast this is when not inside a .DSK image.
It doesn't look into the AMSDOS header for the size.

leexus

Hi Duke,
I am interested in one M4 board for amstrad cpc 6128 plus.
Thank you

GUNHED

#2774
Quote from: Duke on 08:05, 30 October 22@GUNHED C_FSIZE should return 4 bytes as @Prodatron wrote, it returns the actual size the file uses on the microSD card (meaning the amsdos header is part of the size if present). Atleast this is when not inside a .DSK image.
It doesn't look into the AMSDOS header for the size.
Yes, C_SIZE returns 4 bytes. But only for ASCII files it's result can be bigger than 64 KB.
For binary files it cuts off everything bigger than 64 KB.

C_SIZE reads data from the file header if a file is binary. But for SD cards it would be great to be able to work with files greater than 64 KB. (Usage of ASCII files takes soooo long).

Solution:
Expand  C_SIZE in that way:
- C_SIZE reads byte &12 (file-type) from the header
- If the 8. bit is set then read byte &1C from the header and make its content bits 16-23 of the file length.

It would be (hopefully) relatively easy to expand C_SIZE in that way. And we all could work with binary files up to 16 MB in the native OS and also FutureOS.

It this is not doable then we can only work with ASCII files, and to handle them is very slow of course.

BTW: Prodatrons routines work with LBA sectors as he told me on XzentriX meeting. That's different vom M4 functions like  C_SIZE.

@Duke : it would be great if you could do this expansion of C_SIZE (and C_READ), lots of my software uses the expanded header feature. Now only from disc. Hopefully from M4 SD card too.  :) :) :)

Edit: Have a look at the attached file. It's 96 KB, but F_SIZE does tell &8080, as CAT does tell 32 KB.
And: Not more than 32 Kb can be loaded! So I can't access the remaining 64 KB with M4 C_... functions.
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Powered by SMFPacks Menu Editor Mod