1. asm.ex: how to put sring in structure

Hi Pete and others!

One question for you Pete conserning your asm.ex

ex. in TASM  you can do this:

Message     db  "Hello!$"

but how do you so it with asm.ex? can it be done?


what question mark means here?

ex. Message db ?


Thanks,
Talvitie

new topic     » topic index » view message » categorize

2. Re: asm.ex: how to put sring in structure

Forget the 1st question. I figured ir out myself.
But still being wondering the question mark...

--Talvitie

>Hi Pete and others!
>
>One question for you Pete conserning your asm.ex
>
>ex. in TASM  you can do this:
>
>Message     db  "Hello!$"
>
>but how do you so it with asm.ex? can it be done?
>
>
>what question mark means here?
>
>ex. Message db ?
>
>
>Thanks,
>Talvitie

new topic     » goto parent     » topic index » view message » categorize

3. Re: asm.ex: how to put sring in structure

> >what question mark means here?
> >
> >ex. Message db ?
> >

The question mark means that the value of the variable is undefined at
start-up. In a "real" assembler program this is useful when using arrays
(ex.  bigarray dw 10000 dup(?) ), as the undefined data won't take up as
much space in the resulting executable as data with a predefined value would
(at least not with tasm/wdosx or masm).

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: asm.ex: how to put sring in structure

It's quite easy to get a string into memory. Try some code like this:

sequence text
atom ptr
text="Hello, world!$"      -- Define the message
ptr=allocate(length(text)) -- Carve a niche in memory the size of our
message
poke(ptr,text)             -- Stick the message in there

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu