Article View: alt.lang.asm
Article #317Re: Need some help here...
From: rayfil
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
44 lines
2260 bytes
2260 bytes
In article <siip08ido1161@corp.supernews.com>, "M.Thie" <---.m.thie@hetnet.nl.---> wrote: > > Hello.... > > Sorry for multiposting this message, but I realy need some help... > > I'm a newbee to assembly, as you can see later on at the source. In that > source I just try to write a textbuffer to screen without any DOS > interrupts. Well, one char is not a problem, but a NULL terminated string > is. > I think the problem has something to do with the segments. I did create a > data-segment and a code-segment, but strangely enough... the code- segment > isn't familiar with the data-segment. > I tried putting the data within the data-segment into the code- segment and > then it works. But I'd realy like to produce propper code. > I'm using the A86 assembler and it compiles just fine, but... Why doesn't > it work??? > > If anyone could help me... > Thanks in advance. > > Martijn Thie > I assume that you linked this program as an .EXE file, (although I did not notice any instruction for the entry point). With .EXE files, the system sets the CS register to the code segment but sets the DS and ES registers to the program presegment. You have to set these registers yourself to the proper segments, such as: mov ax,data mov ds,ax Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<8gcuae$ncf$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<siip08ido1161@corp.supernews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: feaef,3d80c1f0ef66ac3f X-Google-Attributes: gidfeaef,public X-Google-Thread: 1093da,3d80c1f0ef66ac3f X-Google-Attributes: gid1093da,public X-Google-Thread: f7d8d,3d80c1f0ef66ac3f X-Google-Attributes: gidf7d8d,public X-Google-Thread: 110df7,3d80c1f0ef66ac3f X-Google-Attributes: gid110df7,public From: rayfil@my-deja.com Subject: Re: Need some help here... Date: 2000/05/23 Message-ID: <8gcuae$ncf$1@nnrp1.deja.com> X-Deja-AN: 625966802 References: <siip08ido1161@corp.supernews.com> X-Http-Proxy: 1.1 x54.deja.com:80 (Squid/1.1.22) for client 205.205.149.43 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue May 23 03:35:43 2000 GMT X-MyDeja-Info: XMYDJUIDrayfil Newsgroups: alt.lang.asm,alt.os.assembly,borland.public.tasm,comp.lang.asm X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)