dal 2015 - visita n. 1840
Stack
Stack

 
 Stack   Test Terza   Nasm Cursor  

  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ù
Introduzione
I registri del Pentium
Il modello della memoria
Interazione CPU-RAM
I Servizi Linux - Int 80h
I File in Linux
Schema programma NASM
Esempi Write/Read
Esercizi
lods-stos-movs
gcc + nasm
Gestione Command Line
Stack
Stack-Esercizi
Libreria Funzioni Base
Esercizi con la Libreria
Libreria Macro Base
Test 5 esercizi


Sistemi di numerazione
Elementi Bistabili
Strutture di Controllo
Istruzioni JMP
Hello World
I/O di Testo
Command Line
Colori e Macro
Introduzione I/O
Porta Parallela


AppuntiAsm-386.html
Linux ELF Howto
Linux Assembly Howto
Il linguaggio PC Assembly
Assembly di Paul A.Carter
Assembly di Claudio Daffra



Il vero amore non conosce distanza.
Anonimo

Valid CSS!
pagina generata in 0.001 secondi