
Siano dati: il messaggio, Msg1 db 'Prova SMS !'
ed il buffer Buf1 resb 50
1) Visualizzare Msg1 sul terminale, utilizzando la chiamata a sys_write.
2) Riempire i primi 30 byte di Buf1 con il carattere 'x'.
3) Copiare Msg1 in Buf1.
4) Visualizzare su terminale una stringa contenente solo i caratteri di posto dispari di Msg1.
NOTE: Per costruire le soluzioni è possibile aggiungere dei caratteri sia a Msg1 sia a Buf1.
In Msg1, considerare la 'P' di posto 1 e gli spazi come caratteri.
| Esc[Line;ColumnH Esc[Line;Columnf |
Cursor Position: Moves the cursor to the specified position (coordinates). If you do not specify a position, the cursor moves to the home position at the upper-left corner of the screen (line 0, column 0). This escape sequence works the same way as the following Cursor Position escape sequence. |
|---|---|
| Esc[ValueA | Cursor Up: Moves the cursor up by the specified number of lines without changing columns. If the cursor is already on the top line, ANSI.SYS ignores this sequence. |
| Esc[ValueB | Cursor Down: Moves the cursor down by the specified number of lines without changing columns. If the cursor is already on the bottom line, ANSI.SYS ignores this sequence. |
| Esc[ValueC | Cursor Forward: Moves the cursor forward by the specified number of columns without changing lines. If the cursor is already in the rightmost column, ANSI.SYS ignores this sequence. |
| Esc[ValueD | Cursor Backward: Moves the cursor back by the specified number of columns without changing lines. If the cursor is already in the leftmost column, ANSI.SYS ignores this sequence. |
| Esc[s | Save Cursor Position: Saves the current cursor position. You can move the cursor to the saved cursor position by using the Restore Cursor Position sequence. |
| Esc[u | Restore Cursor Position: Returns the cursor to the position stored by the Save Cursor Position sequence. |
| Esc[2J | Erase Display: Clears the screen and moves the cursor to the home position (line 0, column 0). |
| Esc[K | Erase Line: Clears all characters from the cursor position to the end of the line (including the character at the cursor position). |

Menù

Un esperto e' uno che sa sempre piu' cose su sempre meno cose.
Nicholas Murray Butler