VT52.TXT: Difference between revisions
Jump to navigation
Jump to search
Olivier.jan (talk | contribs) (Olivier.jan moved page VT52.TXT to VT52.TXT/fr: Renaming for language version) Tag: New redirect |
Olivier.jan (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Languages|VT52.TXT}} |
|
+ | <pre> |
||
+ | ********************** EMULATOR VT52 ********************** |
||
+ | |||
+ | VT52 commands are called by displaying the code of the Escape key |
||
+ | (ASCII code 27 in decimal), followed by one or more parameters. |
||
+ | |||
+ | |||
+ | Example of use with the display of a line by GEMDOS 9, |
||
+ | function Cconws(). |
||
+ | |||
+ | MOVE.L #MESSAGE,-(SP) |
||
+ | MOVE.W #9,-(SP) |
||
+ | TRAP #1 |
||
+ | ADDQ.L #6,SP |
||
+ | |||
+ | MESSAGE DC.B 27,"E",27,"p",27,"Y",42,42,"Hello",27,"q",0 |
||
+ | |||
+ | Clears the screen, switches to inverse video writing, places the cursor |
||
+ | on line 10, column 10, displays "Hello", and switches back to normal video. |
||
+ | |||
+ | |||
+ | Escape A Cursor up (stops at the top edge) |
||
+ | Escape B Cursor down (stops at the bottom edge) |
||
+ | Escape C Cursor right (stops at the right edge) |
||
+ | Escape D Cursor left (stops at the left edge) |
||
+ | Escape E Clears the screen |
||
+ | Escape H Places the cursor in the upper-left corner |
||
+ | Escape I Cursor up (scrolling on the top edge) |
||
+ | Escape J Clears the screen from the cursor position |
||
+ | Escape K Clears the line from the cursor position |
||
+ | Escape L Inserts an empty line from the cursor position |
||
+ | |||
+ | Escape M Clears a line at the cursor position and shifts the rest |
||
+ | upwards) |
||
+ | |||
+ | Escape Y followed by 2 numbers. Places the cursor at a certain |
||
+ | position. The first number indicates the line, the second the |
||
+ | column. |
||
+ | Note that 32 needs to be added to these numbers for the command. |
||
+ | |||
+ | Escape b plus a number from 0 to 15. Chooses this number as the writing |
||
+ | color register. |
||
+ | |||
+ | Escape c plus a number. Same as above but for the background color. |
||
+ | Escape d Clears the screen up to the cursor position. |
||
+ | Escape e Activates the cursor |
||
+ | Escape f Deactivates the cursor |
||
+ | Escape j Saves the cursor position |
||
+ | Escape k Resets the cursor to the position saved with Escape j |
||
+ | Escape l Clears the line in which the cursor is located |
||
+ | Escape o Clears the line up to the cursor position |
||
+ | Escape p Activates writing in inverse video |
||
+ | Escape q Deactivates writing in inverse video |
||
+ | Escape v Activates automatic line wrap |
||
+ | Escape w Deactivates automatic line wrap |
||
+ | |||
+ | |||
+ | Note: Pay close attention to the commands: some use uppercase letters, others use lowercase letters!!! |
||
+ | |||
+ | </pre> |
||
+ | Back to [[ASM_Tutorial]] |
||
+ | [[Category: 68000 ASSEMBLY ON ATARI ST Part 1 ]] |
Latest revision as of 00:03, 17 December 2023
********************** EMULATOR VT52 ********************** VT52 commands are called by displaying the code of the Escape key (ASCII code 27 in decimal), followed by one or more parameters. Example of use with the display of a line by GEMDOS 9, function Cconws(). MOVE.L #MESSAGE,-(SP) MOVE.W #9,-(SP) TRAP #1 ADDQ.L #6,SP MESSAGE DC.B 27,"E",27,"p",27,"Y",42,42,"Hello",27,"q",0 Clears the screen, switches to inverse video writing, places the cursor on line 10, column 10, displays "Hello", and switches back to normal video. Escape A Cursor up (stops at the top edge) Escape B Cursor down (stops at the bottom edge) Escape C Cursor right (stops at the right edge) Escape D Cursor left (stops at the left edge) Escape E Clears the screen Escape H Places the cursor in the upper-left corner Escape I Cursor up (scrolling on the top edge) Escape J Clears the screen from the cursor position Escape K Clears the line from the cursor position Escape L Inserts an empty line from the cursor position Escape M Clears a line at the cursor position and shifts the rest upwards) Escape Y followed by 2 numbers. Places the cursor at a certain position. The first number indicates the line, the second the column. Note that 32 needs to be added to these numbers for the command. Escape b plus a number from 0 to 15. Chooses this number as the writing color register. Escape c plus a number. Same as above but for the background color. Escape d Clears the screen up to the cursor position. Escape e Activates the cursor Escape f Deactivates the cursor Escape j Saves the cursor position Escape k Resets the cursor to the position saved with Escape j Escape l Clears the line in which the cursor is located Escape o Clears the line up to the cursor position Escape p Activates writing in inverse video Escape q Deactivates writing in inverse video Escape v Activates automatic line wrap Escape w Deactivates automatic line wrap Note: Pay close attention to the commands: some use uppercase letters, others use lowercase letters!!!
Back to ASM_Tutorial