Author Topic: TP-TOOLS v1.0 for Amstrad CPC6128 and 6128+  (Read 262 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemo59

  • CPC464
  • **
  • Posts: 29
  • Country: fr
  • Liked: 59
  • Likes Given: 25
TP-TOOLS v1.0 for Amstrad CPC6128 and 6128+
« on: 15:27, 22 April 21 »

https://youtu.be/2IWSLU0uK8w


Hi all, the 3" dsk image is attached here ;D
Cpm+ is included. Tu run the program :

|cpm
Readme


EDIT : It's better with the good attached file ;D
« Last Edit: 19:47, 22 April 21 by Nemo59 »
CPC 6128+ / CPM+/ Turbo PASCAL v3
https://cpcrulez.fr/auteur-nemo59.htm

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.506
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1193
  • Likes Given: 2820
Re: TP-TOOLS v1.0 for Amstrad CPC6128 and 6128+
« Reply #1 on: 17:59, 22 April 21 »
Pretty cool stuff for good old Turbo Pascal.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.05.02)

Offline Nemo59

  • CPC464
  • **
  • Posts: 29
  • Country: fr
  • Liked: 59
  • Likes Given: 25
Re: TP-TOOLS v1.0 for Amstrad CPC6128 and 6128+
« Reply #2 on: 20:18, 22 April 21 »
I did not measure it but I have the curious impression that moving a memory block between two 2 banks is faster than moving the same amount of data  within the same bank ... I use the XMOVE command of CPM + for interbank transfert.

How does moving a memory block between two ram banks work in practice? What do the Z80 for this ?
« Last Edit: 20:20, 22 April 21 by Nemo59 »
CPC 6128+ / CPM+/ Turbo PASCAL v3
https://cpcrulez.fr/auteur-nemo59.htm

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 942
  • Liked: 463
  • Likes Given: 76
Re: TP-TOOLS v1.0 for Amstrad CPC6128 and 6128+
« Reply #3 on: 21:29, 22 April 21 »
If both banks can be present in address space simultaneously, you just page them in and do the copy directly.


More generally, you copy some data into a buffer, switch pages, copy it back, switch pages and repeat as necessary.

Offline Nemo59

  • CPC464
  • **
  • Posts: 29
  • Country: fr
  • Liked: 59
  • Likes Given: 25
Re: TP-TOOLS v1.0 for Amstrad CPC6128 and 6128+
« Reply #4 on: 23:29, 22 April 21 »

Move data from bank to bank (*) is a Bios command in CPM+, so it's very easy to use but it's a black box for me. I guess it use a buffer somewhere?
[And in fact my impression was wrong.  With Turbo Pascal / CPM+:

Copy 16kB from bank 1 to bank 1 takes  ~ 0.116 sec
Copy 16kB from bank 0 to bank 1 (or  1 to 0) takes ~ 0.245 sec, just the double of time, not bad I think...


In my Pascal program I use a lot of this because the screen is not in the same bank aera than the program.


(*) Bank in CPM is a different definition than in Amsdos. On the CPC6128 there is 3 banks of memory in the CPM point of view. Bank 0 and 1 share 16ko in common. I dont understand what is the use for Bank 3. I suspect its for buffers. With a personalised CPM I think it would be possible to use overlays in a very interesting way. I tried some things but I get only crashes ;D Create your own CPM§ package seems possible but very complex and not so much documented.
« Last Edit: 23:42, 22 April 21 by Nemo59 »
CPC 6128+ / CPM+/ Turbo PASCAL v3
https://cpcrulez.fr/auteur-nemo59.htm