| |
|
|
![: 28.10.2006](.././../../i/a/noavatar.gif) | So, folgende Cuestión: Yo muß una Struktur erzeugen, el zwei Words y una Doubleword enthält. Como erzeuge Yo en ASM esta Struktur? Como belege Yo en ASM el zweite Word con un número? Como belege Yo en ASM el Doubleword con el Adresse uno Cuerdas?
PS: Su kleines Einstiegstutorial hier finde Yo muy bien. |
|
|
| |
|
|
|
![Frank Abbing: 28.10.2006](.././../../i/a/noavatar.gif) Frank Abbing | Puesto que hay lo mehrere Möglichkeiten. El einfachste es, el Struktur como Speicherbereich a sehen:
|
|
|
| |
|
|
|
![: 28.10.2006](.././../../i/a/noavatar.gif) | OK, verstanden: 2x4 son tan auch 8. |
|
|
| |
|
|
|
![Frank Abbing: 28.10.2006](.././../../i/a/noavatar.gif) Frank Abbing | Wer más bien richtige Estructuras mag. Hier una Ejemplo a Andreas Cuestión:
|
|
|
| |
|
|
|
![: 28.10.2006](.././../../i/a/noavatar.gif) | Für mich como Einsteiger es sólo veces Variante 1 leichter a verstehen. |
|
|
| |
|
|
|
![Frank Abbing: 28.10.2006](.././../../i/a/noavatar.gif) Frank Abbing | Daher Tuve ellos auch zuerst Nuevo. Yo selber benutze auch häufig Variante 1. Como ha uno mehr Kontrolle.
[quote:2b44ac7651]PS: Su kleines Einstiegstutorial hier finde Yo muy bien.[/quote:2b44ac7651] Gracias! Ist direkt para Profano-Quereinsteiger pensamiento y möglichst simpel mantenido. |
|
|
| |
|
|
|
![: 28.10.2006](.././../../i/a/noavatar.gif) | Würde auch folgendes ir?
.data
COUNTED_ANSI_STRING dw 0,0,0,0
cadena db "Probetext",0
.code
lea ebx,COUNTED_ANSI_STRING
mov ax,11
mov [ebx+2],ax
mov [ebx+0],ax
lea edx,cadena
mov [ebx+4],edx
An Byte 0 el Struktur müßte entonces 11 posición, a Byte 2 müßte entonces 11 posición y a Byte 4 el Adresse des Cuerdas - correcto? |
|
|
| |
|
|
|
![Frank Abbing: 28.10.2006](.././../../i/a/noavatar.gif) Frank Abbing | No a Byte, pero a Offset. Aber sonst hast du bastante. Das kannst du auch ligeramente selber überprüfen, indem du el Debugger el Werte ausgeben lässt:
Schreib a veces deinen Code. |
|
|
| |
|
|
|
![: 28.10.2006](.././../../i/a/noavatar.gif) | KLASSE,genau así qué Todavía gebraucht. Gracias! |
|
|
| |
|
|