qdosmsq:traps:trap_1:pset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:traps:trap_1:pset [2010/11/05 14:59] (current)
george.gwilt created
Line 1: Line 1:
 +====== SMS_PSET ======
 +This trap sets printer translate tables.
 +
 +^Call Parameters^^Return Parameters^^
 +|D0.B|$33|D0.L|Corrupted?|
 +|D1.L|Printer translate code.|D1.L|Corrupted.|
 +
 +===== Errors =====
 +No errors are returned by this trap.
 +
 +
 +===== Notes =====
 +  * All registers not shown above are not used on entry and are preserved on exit.
 +  * The following three codes in D1 provides almost complete backward compatibility with the QDOS [[trns|MT_TRA]] call:
 +    * 0 - disable translate.
 +    * 1 - enable translate. If a user table has previously been set this will reset that table. This does not correspond with [[trns|MT_TRA]] which would reset the default table.
 +    * Pointer to a table - set that table.
 +  * New codes are as follows:
 +    * MSW of D1 = language code and LSW = -1 sets a language dependent table without enabling translate.
 +    * MSW of D1 = language code and LSW = 1 sets a language dependent table and enables translate.
 +    * D1.L = 3 sets IBM translate.
 +    * D1.L = 5 sets GEM translate.
 +
 +===== Example =====
 +The example below shows the use of this trap call to set a French translate table and enable translate.
 +
 +<code>
 +        moveq   #33,d1          ; French dialling code . .
 +        swap    d1              ; . . to MSW
 +        addq.w  #1,d1           ; Enable translate
 +        moveq   #$33,d0         ; SMS_PSET
 +        trap    #1              ; Set the table and enable translate
 +</code>
 +
  
  • qdosmsq/traps/trap_1/pset.txt
  • Last modified: 2010/11/05 14:59
  • by george.gwilt