flat assembler
Message board for the users of flat assembler.

Index > Main > How do you define multiple bytes?

Author
Thread Post new topic Reply to topic
Gomer73



Joined: 29 Nov 2003
Posts: 151
Gomer73 29 Nov 2003, 11:30
If I have a label defined as follows:

sTemp1 db 'Temporary string for writing over'

And I don't need it initialized to anything, is there any way of reserving say 50 bytes? Something similar to:

sTemp1 db*50 ?

The docs talk about the numerical value after the data reservation directive specifies how many bytes to reserve, but it did not list an example, so I don't know how to code that.

Thanks in advance,

...Gomer
Post 29 Nov 2003, 11:30
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 29 Nov 2003, 11:38
Code:
sTemp1 rb 50   ; "rb" means "reserve bytes"
    


Regards
Post 29 Nov 2003, 11:38
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Gomer73



Joined: 29 Nov 2003
Posts: 151
Gomer73 29 Nov 2003, 11:59
That was a fast response.
Post 29 Nov 2003, 11:59
View user's profile Send private message 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.