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 10 Guests are viewing this topic.

Duke

#1750
Quote from: CraigsBar on 18:57, 03 August 17
Sorry to bring this us again, I am trying to code a simple start of day desktop in autoexec.bas and for this to work I really want to be able to have the output of |time stored in a variable for display in a large font routine.

Can something like |timevar be added or perhaps included in an extension rom?
Just use the short assembler (hex codes) routine I made for you, if you can find the old thread.
I am sure someone in here can help putting it in to a variable if peek(x+1.2.3.4...) isn't working :)

EDIT found it, here it is again:

10 FOR a=&9000 TO &908A
20 READ b: POKE a,b
30 NEXT
40 CALL &9000
50 IF PEEK(&908A) = 255 THEN PRINT"M4 not found!"
60 MODE 2
70 PRINT "TIME IS : ";
80 LOCATE 1,2:FOR n=0 TO 8:PRINT CHR$(PEEK(&908B+n));:NEXT
90 CALL &BD19: REM frame
100 CALL &9000:REM refresh time
110 GOTO 80
120 DATA &F3,&1,&84,&7F,&ED,&49,&3A,&8A,&90,&FE,&FF,&CC,&4B,&90,&FE,&FF,&C4,&1F,&90,&1,&C,&7F,&ED,&49,&1,&0,&DF,&ED,&49,&FB,&C9,&1,&0,&DF,&ED,&79,&3E,&2,&1,&0,&FE,&11,& 24,&43,&ED,&79,&ED,&59,&ED,&51,&1,&0,&FC,&ED,&49,&21,&2,&FF,&5E,&23,&56,&EB
130 DATA &1,&3,&0,&9,&11,&8B,&90,&1,&16,&0,&ED,&B0,&C9,&F3,&FD,&21,&82,&90,&16,&7F,&D5,&1,&0,&DF,&ED,&51,&3A,&0,&C0,&FE,&1,&20,&1C,&3A,&4,&C0,&6F,&3A,&5,&C0,&67,&FD,&E5,&D1,&1A,&AE,&20,&D,&1A,&23,&13,&E6,&80,&28,&F5,&D1,&7A,&32,&8A,&90,&C9
140 DATA &D1,&15,&20,&D3,&3E,&FF,&C9,&4D,&34,&20,&42,&4F,&41,&52,&C4,&FF


Now anyone how to turn?
FOR n=0 TO 8:PRINT CHR$(PEEK(&908B+n));:NEXT

Into a variable as a$ ??

Duke

Simple solution to turn it into a variable:

80 B$="":LOCATE 1,2:FOR n=0 TO 8:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$


CraigsBar

Quote from: Duke on 20:02, 03 August 17
Simple solution to turn it into a variable:

80 B$="":LOCATE 1,2:FOR n=0 TO 8:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$

Yep that works.... Do we have some magic for the date too?

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

Duke

#1753
Quote from: CraigsBar on 21:26, 03 August 17
Yep that works.... Do we have some magic for the date too?
Sure, just increase n var in the loop to get the entire time-date stamp:

80 B$="":LOCATE 1,2:FOR n=0 TO 18:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$


Also do a:

1 memory &8fff

Or basic may overwrite the code and result in a crash.

EDIT:
The entire time-date stamp is just stored at &908B ->  every time you make a call to &9000
The format is:
hh:mm:ss yyyy-mm-dd

So you will just have to parse it how you like similar to line 80.

Targhan

I just had the time to test the new 2.0.4 Beta6, and the "CD ON CPC" option is awesome. Thanks, it's going to be very useful!
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

CraigsBar

I have reverted to 2.0.3 as for me at least symbos is completely unusable in the 2.0.4 betas [emoji53]

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

Targhan

Small question (sorry if it has been asked before, the thread is 176-page long!): on the PC webpage, clicking on a file that is on the SD card results in a "404 not found" file. Would it be possible to download to the PC a file that would be on the SDcard?
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Duke

@CraigsBar & @Targhan

Thanks.

Both issues should be fixed now with:

M4 Firmware v2.0.4 beta 7
, download at:
http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip

CraigsBar

Quote from: Duke on 21:52, 20 August 17
@CraigsBar & @Targhan

Thanks.

Both issues should be fixed now with:

M4 Firmware v2.0.4 beta 7
, download at:
http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip
Great news.... I know what I am testing shortly!

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

CraigsBar

Quote from: CraigsBar on 22:29, 20 August 17
Great news.... I know what I am testing shortly!

Sent from my ONEPLUS 3t using Tapatalk
Hmmmm. Still no joy with running symbos from the m4 sd card with 2.0.4b will capture a video of the failure tonight when I get home.

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

Duke

Quote from: CraigsBar on 16:21, 21 August 17
Hmmmm. Still no joy with running symbos from the m4 sd card with 2.0.4b will capture a video of the failure tonight when I get home.

Ok. I tested yesterday running symbOS and using symIRC, all was fine (CPC6128 and xmem and on CPC464+ with xmem). Maybe it's some other problem..

Targhan

Clicking on a file to download it works perfectly, thanks!! Asking for a feature and having it coded the next day, now that's what I call support :).
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Duke

Quote from: Targhan on 19:16, 21 August 17
Clicking on a file to download it works perfectly, thanks!! Asking for a feature and having it coded the next day, now that's what I call support :) .
Actually it was already working earlier, but due to adding some javascript uriencode function in the html it was broken (whenever I added that), so it was an easy one ;)

CraigsBar

Quote from: Duke on 18:23, 21 August 17
Ok. I tested yesterday running symbOS and using symIRC, all was fine (CPC6128 and xmem and on CPC464+ with xmem). Maybe it's some other problem..
It works fine on the exact same setup with 2.0.3 booting from the sd card not rom

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

AlexD

#1764
Hi,
I tested M4 wifi with SymbOS.
My configuration:
CPC 6128plus, XMEM, M4 wifi.
parados 1.2


M4 firmwares tested: 2.03 and 2.0.4 beta 7


Network is OK (chat, ...) but problems occur when using SymIRC (with both firmware)
Connection is established, some packets are received (let's say 6-8 2048 packets), but then connections is lost or closed.


I tried to connect to different IRC server (most of the time I use chat.freenode.net).


Once connection is closed, SymbOS is still alive, but if then I click the disconnect button on SymbIRC, the system freeze.




Duke

@AlexD

Thanks for the report. Will check same configuration when my CPC6128+ is not in pieces anymore.
What cartridge is used? (Plain basic + amsdos ?)

Also there is newer version of SymIRC than the one included with SymbOS package, IIRC. there was some bugs. I forgot the link.

AlexD

I use the standard CPC cartridge, I downloaded SymbIRC from http://members.home.nl/evanzanten/appstore/


blackdalek

Got my M4 board today. Very pleased with the device.

Just one question, and this may be a stupid question, but how do I "insert a different disk side" without resetting the CPC back to the command interface to |cd to the new disk? For example, in a game or demo which requires side 2 of the disk during the execution of the program?
Am I missing something? Can disk image swapping somehow be done through the web interface "on the fly" while the CPC is running a program?
CPC6128 modded with ABBA switch. External 5.25" floppy drive with side switch and Multiface 2. Now also sporting a joystick splitter and M4 WiFi board.

Duke

Quote from: blackdalek on 17:03, 01 September 17
Am I missing something? Can disk image swapping somehow be done through the web interface "on the fly" while the CPC is running a program?
Yes with latest beta, you can change disc via the web interface, press [CD ON CPC] when you have selected the disc.

You can download the beta firmware here: www.spinpoint.org/cpc/M4FIRM_v204b7.zip
Unpack to root of SD card (or drag and drop the files after unpacking via the web interface). Reset M4 (or power cycle the CPC).

CraigsBar

Is there any technical reason why a m4 won't let me replace rom0 on a tall key cpc 464 to run basic 1.1?

I've tried both the cpc6128 and cpc664 dumps but both cause a crash on boot.

Craig.

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

Bryce

Quote from: CraigsBar on 13:17, 05 September 17
Is there any technical reason why a m4 won't let me replace rom0 on a tall key cpc 464 to run basic 1.1?

I've tried both the cpc6128 and cpc664 dumps but both cause a crash on boot.

Craig.

Sent from my ONEPLUS 3t using Tapatalk

Are you swapping both the upper and lower ROM0's? If you don't swap both it will crash.

Bryce.

CraigsBar

Yep. I tried both the y
664 pair and 6128 pair from the winape package as well as the cpc wiki rom list.

Sent from my ONEPLUS 3t using Tapatalk

IRC:  #Retro4All on Freenode

Bryce

Does the M4 allow you to replace the lower ROM? I wasn't aware of that feature.

Bryce.

CraigsBar

Yes it does.

Sent from my ONEPLUS 3t using Tapatalk
IRC:  #Retro4All on Freenode

Duke

Quote from: CraigsBar on 13:17, 05 September 17
Is there any technical reason why a m4 won't let me replace rom0 on a tall key cpc 464 to run basic 1.1?

I've tried both the cpc6128 and cpc664 dumps but both cause a crash on boot.
Have you tried with M4 directly connected (no mx4 and xmem) ?
Works for me on Schneider CPC 464 "tall key" with GA 40007 (using Basic and OS rom from 6128).
If not, I would say bad contacts on the edge connector.

Powered by SMFPacks Menu Editor Mod