flat assembler
Message board for the users of flat assembler.

Index > Main > arrays and string please help

Author
Thread Post new topic Reply to topic
dickhead



Joined: 30 Nov 2003
Posts: 17
Location: Memory
dickhead 30 Nov 2003, 12:49
can anybody help with arrays explanation. i dunno much (coz i'm a kid Laughing and a nuB too).

Wink
bla bla

_________________
teach me or i'll dick ya.
Post 30 Nov 2003, 12:49
View user's profile Send private message Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands 30 Nov 2003, 12:54
Hi dickhead,


Is something wrong with you? Why are you posting so much, even when it is not needed? Cut down on the crap boy.

Regards,
Art
Post 30 Nov 2003, 12:54
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 30 Nov 2003, 12:54
Do you understand how to use arrays in C or you don't know anything about arrays at all?

_________________
silkodyssey
Post 30 Nov 2003, 12:54
View user's profile Send private message MSN Messenger Reply with quote
dickhead



Joined: 30 Nov 2003
Posts: 17
Location: Memory
dickhead 30 Nov 2003, 12:58
i know arrays in c but how can i define and use arrays in assmbly


i mean

how to do things like

char mystring[50];

like in java

String[] mystring = { "hello", a" };

Wink
bla bla

_________________
teach me or i'll dick ya.


Last edited by dickhead on 30 Nov 2003, 13:00; edited 1 time in total
Post 30 Nov 2003, 12:58
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 30 Nov 2003, 12:59
string rb 50

string db "hello",0
Post 30 Nov 2003, 12:59
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
dickhead



Joined: 30 Nov 2003
Posts: 17
Location: Memory
dickhead 30 Nov 2003, 13:01
thanks and good day roticv

how to use these in for loops and instring and others.

Wink
bla bla

_________________
teach me or i'll dick ya.
Post 30 Nov 2003, 13:01
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 30 Nov 2003, 13:04
Have a look at :

http://board.win32asmcommunity.net/phpwiki/index.php/AllAboutStrings

PS: Just too lazy to repeat what I have typed before.
Post 30 Nov 2003, 13:04
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 30 Nov 2003, 13:09
dickhead,

Didn't I suggest you read dr paul carter's asm tutorial at the win32asmboard. If you read that it will answer a lot of your questions. Smile It's perfect for you seeing that you know C already. It's targetted to people who know C already and want to learn assembly language. It teaches asm by showing you how something that you do in C would be done is assembly. You should check it out. It's not long, under 200 pages I think. I know you're eager to start writing a lot of code but you have to take it one step at a time. Smile

dr paul carter's asm tutorial:
http://www.drpaulcarter.com/pcasm/

_________________
silkodyssey


Last edited by silkodyssey on 30 Nov 2003, 13:10; edited 1 time in total
Post 30 Nov 2003, 13:09
View user's profile Send private message MSN Messenger Reply with quote
dickhead



Joined: 30 Nov 2003
Posts: 17
Location: Memory
dickhead 30 Nov 2003, 13:10
i see

but i dont understand one thing in example 1

what does or al, al do?

it doesn't mean anything does it?

HI silyodyssey

are you odyssey from boardwin32

that tutorial uses nasm and i want to use fasm.

how to do .code and .data in fasm?

Wink
blabla

_________________
teach me or i'll dick ya.
Post 30 Nov 2003, 13:10
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 30 Nov 2003, 13:18
In English its a test to determine if al has the value 0(with jz instruction). To understand how it works you need to read about logical operations. Here's a good link:

http://webster.cs.ucr.edu/Page_AoAWin/HTML/DataRepresentationa4.html#999290

_________________
silkodyssey
Post 30 Nov 2003, 13:18
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.