Author Topic: Screen files viewer  (Read 2265 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.331
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2236
Re: Screen files viewer
« Reply #25 on: 23:02, 02 August 18 »
@@ComSoft6128 Sorry it took some time.
Viewer with source is attached. This is v1.0. The code is all using firmware.

The viewer is meant to be really easy to use and like a modern picture viewer in that you can move left/right to see the pictures.

run"view"
* No need to list the directory and select the name of the file to view.
* The program auto scans all users from the selected drive. It does this by using |CAT and reading the data in the buffer. (ok for VDOS, Dobbertin, AMSDOS etc, but not ok for OS like ImpDOS, ACMEDOS etc where the CAT doesn't have the internal data as I need it).
* It supports VDOS, Dobbertin, Parados, ROMDOS etc. It should support Vortex 3rd drive and Dobbertin HD.
* It reads the disc XDPB and allocates the memory needed so 128/256 files in directory are ok and large formats are ok.
* It recognises compressed art studio pictures and reads the palette and displays them. I considered supporting other formats and I may still do that.
* It will display pictures, text, memory dump and info.
To use it run it.
When the menu appears:
e.g.
* >A
  <>2/14 "0:CYCLEDEM.PAL"   >Picture Raw
 you can move the "*" up and down using cursors or joystick.Moving left/right changes the option next to *.  (in the above it will change drives)

On line 1 you can choose the drive.On line 2 you can choose the file. (in the example above you are viewing 2 out of 14 it's on user 0 and called "CYCLEDEM.PAL"
On line 3 you can choose the view. (in the example above it's viewing a picture. It's not an art studio picture so it's showing it as raw mode 2 pixels)

The "<>"  in the example above means press left to go to file 1, and press right to go to file 3.

Sorry it's not compatible with other DOS that don't fill in the CAT data. I will need to find a new compatible way to do that and it'll only show palettes currently for compressed art studio pics. I'll fix that too.
Any other picture formats I could support that you need?

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Online Ast

  • 6128 Plus
  • ******
  • Posts: 919
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 642
Re: Screen files viewer
« Reply #26 on: 03:09, 03 August 18 »
but not ok for OS like ImpDOS, ACMEDOS etc where the CAT doesn't have the internal data as I need it).

In the latest revision of iMPdos (August 2018), you can do :
Code: [Select]
ld de,#4000 ; buffer
call #bc9b
...
The directory can be read on bank #cc (#4000-#7fff)
…….Life is so beautiful !
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline ComSoft6128

  • ..................................
  • Supporter
  • 6128 Plus
  • *
  • Posts: 762
  • Country: scotland
  • CPC THEN CPC NOW
    • index.php?action=treasury
  • Liked: 825
Re: Screen files viewer
« Reply #27 on: 07:46, 03 August 18 »
This is much appreciated arnoldemu.

It is a very rare treat to have a new program to run on the original hardware.

About 90% of the screen files are simple Vidi grabs, with the rest made up of Advanced Art Studio files and also one disc of (Electric Lantern Show) compressed files.

When I have had a look at it on the 6128 and 6128 Plus I will get back to you and let you know what I find.

Thank you!

Peter

Offline SOS

  • Supporter
  • CPC6128
  • *
  • Posts: 247
  • Country: de
  • Identity lost
    • index.php?action=treasury
  • Liked: 152
Re: Screen files viewer
« Reply #28 on: 19:54, 03 August 18 »
* The program auto scans all users from the selected drive. It does this by using |CAT and reading the data in the buffer. (ok for VDOS, Dobbertin, AMSDOS etc, but not ok for OS like ImpDOS, ACMEDOS etc where the CAT doesn't have the internal data as I need it).
CubeIOS maintains the Data-Buffer, ok Limit to 146 files, but i think, it's ok...
You can also think about to use the |UDIR-Command, than you can get compatibility to M4DOS, ACMEDOS, CubeIOS (with more files).

* It reads the disc XDPB and allocates the memory needed so 128/256 files in directory are ok and large formats are ok.
That's IMHO a greater Problem, what should an modern Massdevice-OS should be reported?

Online Ast

  • 6128 Plus
  • ******
  • Posts: 919
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 642
Re: Screen files viewer
« Reply #29 on: 14:31, 04 August 18 »

@arnoldemu : You could find the last iMPdos Update to download.


You could easily add iMPdos onto your Screen Files Viewer


All you have to do is :
Code: [Select]

ld de,#4000
call #bc9b



The catalog will be written in bank #cc, adress #4000 upto #7fff.
Have a good fun!
« Last Edit: 23:56, 05 August 18 by Ast »
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !