Re: referring to segments other than DS - how?
- From: japheth <mail@xxxxxxxxxx>
- Date: Wed, 27 Feb 2008 11:04:31 -0800 (PST)
1)
With int 21h function 3Fh, I'm trying to write then read an array of
bytes in the uninitialized data section.
When I call the int 21h / 3Fh to read from a file and store in an
uninitialized buffer - I assume the interrupt wants both BX and DX to be
offsets to DS, so how do I set DS to uninitialized section (BSS) in
MASM. I know how to set DS to "DATA" segment in MASM :
mov ax, @data
mov ds, ax
so for BSS, would it be:
mov ax, _BSS
I tried @BSS, that didn't assemble.
;-----------------------------------
in 16bit, if you're using the .model directive (ie .model small),
@data will be the "group" of the data segment. Then both logical
segments _DATA and _BSS are contained in the same physical segment
(which is called DGROUP) and the "offset" operator will refer to the
physical segment then (at least with MASM v6+).
.
- Follow-Ups:
- Re: referring to segments other than DS - how?
- From: Pop Tart
- Re: referring to segments other than DS - how?
- References:
- referring to segments other than DS - how?
- From: Pop Tart
- referring to segments other than DS - how?
- Prev by Date: Re: referring to segments other than DS - how?
- Next by Date: Re: referring to segments other than DS - how?
- Previous by thread: Re: referring to segments other than DS - how?
- Next by thread: Re: referring to segments other than DS - how?
- Index(es):
Relevant Pages
|