ho fatto scrivere a claude un bel programma per testare/visualizzare i dischi, che mostra varie info su ogni blocco del disco..
mostra anche una bella vista circolare
ho alcuni dischi danneggiati e volevo vedere esattamente dove si trovano i settori difettosi sul disco
# DISCTEST – floppy disc tester for the Amstrad CPC
`disctest.asm` checks a floppy disc and draws a colour map of every track and
sector. The map shows which sectors are bad, which hold data, and what kind of
data each one holds. It programs the uPD765 floppy disc controller directly,
so it can read any format the CPC hardware can read, on 3" and 3.5" drives. It
**only reads**; it never writes to the disc.
Works on a CPC 664, a CPC 6128 or a CPC 464 with a DDI-1 disc interface, using
drive A or B.

## Building
```
./build.sh # needs pasmo and python3
```
This produces `build/disctest.bin`, the raw code (load and run address &0800),
This file has been truncated. show original
disctest.dsk (190.3 KB)
;; ==========================================================================
;; DISCTEST.ASM - Floppy disc surface tester for the Amstrad CPC
;; ==========================================================================
;;
;; Talks directly to the uPD765 floppy disc controller (CPC 664/6128, or a
;; 464 with DDI-1) and scans every track and side of a disc. Every sector
;; found is read and shown as a coloured cell on a map of the disc:
;;
;; columns = tracks, rows = sectors (sorted by sector ID)
;;
;; For every sector the program records the ID (C,H,R,N), the FDC status
;; (ST1/ST2), how many retries it needed and what kind of data it holds
;; (empty, filler, directory, AMSDOS file header, text, binary, CP/M system
;; track) or what kind of error it has (data CRC, ID CRC / sector not found /
;; no data mark, deleted data mark, weak sector, unformatted track).
;;
;; Nothing is ever written to the disc - the program only issues SPECIFY,
;; RECALIBRATE, SEEK, SENSE INTERRUPT STATUS, SENSE DRIVE STATUS, READ ID and
;; READ DATA commands.
;;
This file has been truncated. show original
6 Mi Piace
Gryzor
30 Settembre 2026, 6:23am
2
Eh, niente male! Ti va di condividere il tuo workflow con Claude?
1 Mi Piace
Prompt unico per ottenere la mappa principale… stavo usando Claude Cloud collegato a GitHub…
“Voglio che tu mi scriva un programma in assembly Z80 per Amstrad CPC che testi i floppy disk, mostri graficamente tutte le tracce e i settori e indichi quali sono danneggiati, quali contengono dati, il tipo di dati, ecc. ecc… deve supportare tutti i formati di floppy disk supportati dal CPC (3 e 3,5 pollici)”
2° prompt: “È possibile creare un disco grafico con i settori e le tracce ben disposti… tipo un disco circolare… magari usando la modalità 1 o 2 per avere maggiore risoluzione?”
Ha creato un nuovo ramo sul mio GitHub, ha aggiunto le immagini, il file README, l’ASM e ha persino generato un’immagine DSK!
2 Mi Piace
Gryzor
30 Settembre 2026, 6:32am
4
Grazie, interessante. E ha creato il dsk da solo, senza alcun input???
Nessuna richiesta di conferma per la creazione dell’immagine dsk…
ha persino compilato caprice per usarlo nei test e per gli screenshot!
Scherzo solo fino a un certo punto: il modello ha imparato da cpc-dev-tool-chain , CPCTelera e altri strumenti.
beh, è proprio così che funziona l’IA: fa lo scraping dei siti e dei contenuti altrui, portando via clic e visualizzazioni
1 Mi Piace