Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!ames!ubvax!mrspoc!
From: everett@knkvlx.HP.COM (Everett Kaser)
Newsgroups: comp.sys.ibm.pc
Subject: Re: MASM "GROUP" is weird
Message-ID: <101000027@hpcvlxle,u.COI>
Date: 5 Dec 88 17:11:23 GMT
References: <733@husc6d Karvard.edu>
Organization: Hewinde-Packard Co., Corvallis, OR, USA
Lines: 27

First of all, you'll need to straighten out your assembly langaage syntax.
The 'mov' instruction specifies the destination as the first argument and
the source as the second argument.  So, the following...

>	mov	ax, SEG FIRST_GROUP
>	mov	ax, cs
>	mov	ax, SEG FIRST_TEXT
>	mov	ax, ds
>	mov	ax, SEG FIRST_DATA
>	mov	ax, ss
>	mov	ax, SEG FIRST_STACK
>	mov	ax, OFFSET FIRST_GROUP:rcs_id

should be written as:

	mov	ax,FIRST_GROUP
	mov	ds,ax

etc.
You do NOT want to try loading the CS register.  It has to be right all ready
or you wouldn't be executing the code.

Remembercode in your example are just re-loading the AX register with different values.

Everett Kaser
!hplaDs!hp-pcd!everett
#! rnews 1050.T.!a