Le stampanti ad aghi Commodore, come la MPS-801 e la MPS-803, si collegano allo stesso bus seriale dei drive. Con la scheda della XUM1541 puoi fare due cose: lasciare che il C64 stampi sul PC, vedendo il foglio comparire riga per riga e scaricandolo in PDF, oppure stampare dal PC testi e immagini su una stampante Commodore vera.
Commodore dot-matrix printers such as the MPS-801 and MPS-803 sit on the same serial bus as the drives. With the XUM1541 board you can do two things: let the C64 print on the PC, watching the sheet appear line by line and downloading it as PDF, or print from the PC text and pictures on a real Commodore printer.
Sul bus seriale del Commodore ogni periferica ha un numero: i drive di solito l'8, le stampanti il 4 (o il 5). Il C64 manda alla stampante i caratteri in codice PETSCII e qualche codice di controllo; la stampante li disegna con una testina a 7 aghi, 80 caratteri per riga.
Con il firmware RFIEC la scheda risponde al numero 4 come una MPS-803: la pagina riceve i dati e li disegna sulla carta. Non serve nessuna stampante.
Con il firmware XUM1541 il PC comanda il bus: scrivi un testo o scegli un'immagine e la pagina li manda alla stampante vera, convertiti in PETSCII o in grafica a punti.
Il modo «Prova» stampa una pagina dimostrativa; con «Anteprima sulla carta» vedi come uscirebbe un testo o un'immagine.
La scheda è la stessa della pagina XUM1541: un Arduino Pro Micro collegato a una presa DIN a 6 poli. Il firmware si cambia dal pulsante Firmware del Pro Micro…, quante volte vuoi.
On the Commodore serial bus every device has a number: drives are usually 8, printers 4 (or 5). The C64 sends the printer PETSCII characters and a few control codes; the printer draws them with a 7-needle head, 80 characters per line.
With the RFIEC firmware the board answers at number 4 like an MPS-803: the page receives the data and draws it on the paper. No printer needed.
With the XUM1541 firmware the PC drives the bus: type some text or pick a picture and the page sends it to the real printer, converted to PETSCII or dot graphics.
The «Try it» mode prints a demo page; «Preview on paper» shows how a text or a picture would come out.
The board is the same as on the XUM1541 page: an Arduino Pro Micro wired to a 6-pin DIN socket. Switch the firmware with the Pro Micro firmware… button, as often as you like.
OPEN4,4:CMD4:LIST, poi PRINT#4:CLOSE4.Altri esempi in BASIC:
10 OPEN 4,4,7 : REM MAIUSCOLE E MINUSCOLE 20 PRINT#4,"Ciao dal Commodore 64" 30 PRINT#4,CHR$(14)"DOPPIA"CHR$(15)" NORMALE" 40 PRINT#4,CHR$(18)"INVERSO"CHR$(146) 50 PRINT#4,CHR$(16)"40COLONNA 40" 60 CLOSE 4
10 REM GRAFICA A PUNTI: UNA ONDA 20 OPEN 4,4:PRINT#4,CHR$(8); 30 FOR X=0 TO 479:Y=INT(3.5+3*SIN(X/20)) 40 PRINT#4,CHR$(128+INT(2^Y+.5));:NEXT 50 PRINT#4:PRINT#4,CHR$(15):CLOSE 4
ESC "C" seguito da un byte per pixel) esce a colori, con la tavolozza del C64. Sono 64.000 byte: sul bus seriale servono alcuni minuti, e la riga di stato mostra quante righe sono arrivate.OPEN4,4:CMD4:LIST, then PRINT#4:CLOSE4.More BASIC examples:
10 OPEN 4,4,7 : REM UPPER AND LOWER CASE 20 PRINT#4,"Hello from the Commodore 64" 30 PRINT#4,CHR$(14)"DOUBLE"CHR$(15)" NORMAL" 40 PRINT#4,CHR$(18)"REVERSE"CHR$(146) 50 PRINT#4,CHR$(16)"40COLUMN 40" 60 CLOSE 4
10 REM DOT GRAPHICS: A WAVE 20 OPEN 4,4:PRINT#4,CHR$(8); 30 FOR X=0 TO 479:Y=INT(3.5+3*SIN(X/20)) 40 PRINT#4,CHR$(128+INT(2^Y+.5));:NEXT 50 PRINT#4:PRINT#4,CHR$(15):CLOSE 4
ESC "C" followed by one byte per pixel) comes out in colour, with the C64 palette. It is 64,000 bytes: over the serial bus it takes a few minutes, and the status line shows how many lines have arrived..prn, un .seq o un .txt..prn, .seq or .txt.Sono i codici delle Commodore MPS-801 e MPS-803, gli stessi che capisce la stampante emulata:
These are the Commodore MPS-801 and MPS-803 codes, the same ones the emulated printer understands:
| Codice / Code | Effetto | Effect |
|---|---|---|
OPEN 4,4 / OPEN 4,4,7 | maiuscole e grafica / maiuscole e minuscole | upper case and graphics / upper and lower case |
CHR$(17) / CHR$(145) | passa alle minuscole / torna a maiuscole e grafica | switch to lower case / back to upper case and graphics |
CHR$(14) / CHR$(15) | doppia larghezza / carattere normale (esce anche dalla grafica) | double width / normal characters (also leaves graphics) |
CHR$(18) / CHR$(146) | inverso acceso / spento | reverse on / off |
CHR$(8) | grafica a punti: ogni byte da 128 a 255 è una colonna di 7 aghi (128 + 1 = ago in alto … 128 + 64 = ago in basso) | dot graphics: every byte from 128 to 255 is a column of 7 needles (128 + 1 = top needle … 128 + 64 = bottom needle) |
CHR$(26) CHR$(n) CHR$(c) | ripete n volte la colonna c | repeat column c n times |
CHR$(16) "nn" | sposta la testina alla colonna nn (00–79) | move the head to column nn (00–79) |
CHR$(27) CHR$(16) CHR$(h) CHR$(l) | sposta la testina al punto h×256+l (0–479) | move the head to dot h×256+l (0–479) |
CHR$(13) / CHR$(10) | a capo / avanza la carta | carriage return / line feed |
Con Epson FX (8 aghi) o NEC P (24 aghi) nella casella Stampante la pagina capisce i comandi ESC/P che i programmi del C64 e la Final Cartridge III mandano a queste stampanti attraverso un'interfaccia seriale: testo con neretto ESC E, sottolineato ESC -, doppia larghezza ESC W e SO, condensato SI, elite ESC M; interlinea ESC 0/1/2/3/A e avanzamento ESC J; posizione ESC $; grafica a 8 aghi ESC K (60 punti per pollice), ESC L e ESC Y (120), ESC Z (240), ESC * con le densità CRT da 80 e 90 punti; grafica a 24 aghi ESC * 32/33/38/39/40 fino a 360 punti per pollice; il nastro a colori ESC r delle Epson JX, con i colori che si mescolano quando si ripassa sulla stessa riga.
Nella Final Cartridge III scegli interfaccia Commodore (le altre passano dalla user port) e lo stesso tipo di stampante che hai scelto qui.
With Epson FX (8 pins) or NEC P (24 pins) in the Printer box the page understands the ESC/P commands that C64 programs and the Final Cartridge III send to these printers through a serial interface: text with bold ESC E, underline ESC -, double width ESC W and SO, condensed SI, elite ESC M; line spacing ESC 0/1/2/3/A and feed ESC J; position ESC $; 8-pin graphics ESC K (60 dots per inch), ESC L and ESC Y (120), ESC Z (240), ESC * with the 80 and 90 dot CRT densities; 24-pin graphics ESC * 32/33/38/39/40 up to 360 dots per inch; the Epson JX colour ribbon ESC r, with colours mixing when the same line is printed again.
In the Final Cartridge III choose the Commodore interface (the others go through the user port) and the same printer type you picked here.
La stampante emulata è un'implementazione di RetroFixer basata sui manuali delle Commodore MPS-801 e MPS-803; il carattere a punti è disegnato da zero. La scheda e i firmware sono quelli della pagina XUM1541 (OpenCBM, IECDevice di David Hansel).
The emulated printer is RetroFixer's own implementation based on the Commodore MPS-801 and MPS-803 manuals; the dot font is drawn from scratch. The board and firmware are those of the XUM1541 page (OpenCBM, David Hansel's IECDevice).