From owner-freebsd-current Wed Nov 27 21:07:27 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA06247 for current-outgoing; Wed, 27 Nov 1996 21:07:27 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA06241 for ; Wed, 27 Nov 1996 21:07:23 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id PAA11335; Thu, 28 Nov 1996 15:50:35 +1100 Date: Thu, 28 Nov 1996 15:50:35 +1100 From: Bruce Evans Message-Id: <199611280450.PAA11335@godzilla.zeta.org.au> To: Christian.Gusenbauer@utimaco.co.at, freebsd-current@freebsd.org Subject: Re: Dosboot and bcc Cc: Christian.Gusenbauer@safeconcept.utimaco.co.at Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Now, I have problems with the as86 assembler. The DOS masm uses the >following syntax: > > mov word ptr es:[bx+4],ax > >what is the correct as86 syntax for segment prefixes? Prefixes go on separate lines: seg es mov [bx+4],ax You can use `word ptr' or better simply `word', but this is unnecessary when the operand size is unique. There are no mnemonics for operand size and address size prefixes. These are usually unnecessary. See the examples in as/asm/*. Bruce