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). |
q: esce dall'ambiente gdb;
h: aiuto sui comandi gdb;
l: lista alcune righe del sorgente;
l num_riga: lista le righe del sorgente subito prima e subito dopo quella indicata;
info address var: restituisce l'indirizzo di var;
info variables: restituisce nome e indirizzo di tutte le variabili;
info registers: visualizza lo stato dei registri;
breakpoint num_riga: inserisce un blocco subito dopo la riga indicata;
r: esegue il programma fino al primo blocco;
c: riprende l'esecuzione;
s: esegue solo l'istruzione successiva.
| su | richiesta passaggio modalita' amministratore |
| mkdir /mnt/sda7 | creazione della directory /mnt/sda7 |
| mount /dev/sda7 /mnt/sda7 | montaggio della partizione /dev/sda7 nel punto /mnt/sda7 dell'albero delle directory |
| ls -l | lista il contenuto della directory corrente |
| ls -l /mnt | lista il contenuto della directory /mnt |
| man mkdir | visualizza la pagina di manuale relativa al comando mkdir |
| cp file1 file2 | copia file1 in file2 |
| cp -r dir1 dir2 | copia dir1 in dir2 (da notare l'opzione -r che attiva la ricorsione) |
| geany & | avvia geany (da notare il parametro & che disimpegna la console per altri comandi) |