English
Assembler Forum

Structures in ASM

 
so, following question:
I must a structure produce, The two Words and a Doubleword contains.
How beget I in ASM these structure?
How belege I in ASM the second Word with a number?
How belege I in ASM the Doubleword with the address one Strings?

PS: your small Einstiegstutorial here find I very well.
 
10/28/06  
 




Frank
Abbing
Since there it several Opportunities. The simplest is, the structure as Speicherbereich To see:
!.data
variable  dd   0,0
string db "Probetext",0
.code
lea ebx,variable
mov ax,128
mov [ebx+2],ax
lea edx,string
mov [ebx+4],edx
 
10/28/06  
 



OK, understood: 2x4 are so too 8.
 
10/28/06  
 




Frank
Abbing
who rather right Structures likes. here an example To Andreas question:
 
10/28/06  
 



for me as Beginner is first time Variante 1 leichter To understand.
 
10/28/06  
 




Frank
Abbing
therefore I had tappt im dunkeln too first posted. I yourself use too often Variante 1. there has one More control.

[quote:2b44ac7651]PS: your small Einstiegstutorial here find I very well.[/quote:2b44ac7651]
thanks! is directly for Profan-Quereinsteiger virtual and possible simply held.
 
10/28/06  
 



would be too the following weg?

on byte 0 the structure should then 11 stand, on byte 2 should then 11 stand and on byte 4 The address the Strings - correctly.?
 
10/28/06  
 




Frank
Abbing
not on byte, separate on Offset. but otherwise have you got right. the can you too slight yourself to check on, because You whom Debugger The values spend can:

Schreib times under your code.
 
10/28/06  
 



KLASSE,very so what have I yet used. thanks!
 
10/28/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.175 Views

Untitledvor 0 min.
RudiB.11/13/21
funkheld05/07/16
p.specht10/18/13
Gerhard Putschalka07/28/11
More...

Themeninformationen

this Topic has 2 subscriber:

unbekannt (5x)
Frank Abbing (4x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie