SORRY FOR THE DOUBLE POST! :grin:
:stupid:

How do I get this to work????

.data

label db "stuff here"

.code
start:
mov ax,@data

... etc
...
...


the assembler doesnt like this!
how should I get the address of data in ax?

thanks
dave
Posted on 2002-05-23 19:19:08 by dlburlin
How are you assembling?

ml /Zm ...
Posted on 2002-05-23 19:27:14 by bdjames
bdjames

ML
Posted on 2002-05-23 19:34:36 by dlburlin
.model small

.code
main:
mov ax, @data
mov ds, ax
end main
Posted on 2002-05-23 19:45:59 by bdjames
actually thats what I've got except that the model is flat???
Posted on 2002-05-23 20:00:16 by dlburlin
flat == 32 bit
Posted on 2002-05-23 20:01:30 by bdjames
:grin: its been a long long time since Ive done this.. thanks for the reminder.
regds
dave
Posted on 2002-05-23 20:04:47 by dlburlin