Changes

Jump to: navigation, search

Amstrad/Schneider Printer Control Codes

1,649 bytes added, 13:47, 4 September 2010
{{AmstradPrinterLinks}}
<br>
 
== DMP1 Control Codes ==
 
{|{{Prettytable|width: 700px; font-size: 2em;}}
|''Hex'' ||''Decimal'' ||''ASCII'' ||''Type''
|''Description''
|-
|0A ||10 ||LF ||Misc
|CR+LF
|-
|0D ||13 ||CR ||Misc
|CR or CR+LF (switch-selectable)
|-
|0E ||14 ||xxx ||Width
|Double Width Mode (also restores 1/6" line feed rate; after graphics printing)
|-
|0F ||15 ||xxx ||Width
|Normal Width Mode (also restores 1/6" line feed rate; after graphics printing)
|-
|10,xx,xx ||16,xx,xx ||xxx "NN" ||Misc
|Print Position in character units (NN = two-digit ASCII, "00..79")
|-
|14 ||20 ||xxx ||Misc
|CR
|-
|1B,10,hi,lo ||27,16,xx,xx ||ESC xxx xx xx ||Misc
|Print Position in dot units (hi:lo = 9bit binary, 0..479) (lo=lower 7bit, hi=upper 2bit)
|-
|1B,4B,hi,lo,gfx0,gfx1,.. ||27,75,hi,lo,gfx0,gfx1,.. ||ESC "K" ... ||Graphics
|Graphics Mode (hi:lo = 9bit count, 0..479) (lo=lower 7bit, hi=upper 2bit) (followed by as many bytes, with bit0=upper pixel .. bit6=lower pixel)
|-
|1C,num,gfx ||28,num,gfx ||xxx,num,gfx ||Graphics
|Repetition of one byte of graphic print data (num=1..127 repeat count) (gfx: bit0=upper pixel .. bit6=lower pixel)
|-
|}
 
* Character Mode: 6 lines/inch
* Graphics Mode: 9 lines/inch (each "line" containing 7 pixels vertically) - after Graphics printing: required to issue chr(0Eh) or chr(0Fh) to return to 6 lines/inch mode
== DMP2xxx/3xxx Printer Codes (sorted by number) ==
6,388
edits