🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4103

MASM 1.0 Question.

#4103
From: Bob Davis
Date: Wed, 02 Jan 1991 15:31
30 lines
1540 bytes
	Here is a fragment of Assembly language code I am having a problem
getting MASM v1.0 to handle properly:

	...

	Begin	EQU	$
		.
		.
		.
	End	EQU	$
;
	mov	dx,(End-Begin+0Fh) SHR 4
------------------------------------------
	For some reason, the constant (End-Begin+0Fh) SHR 4
	is calculated as zero, despite the fact that there
	are 20 paragraphs between Begin and End.
	No error messages are flagged by the assembler.

Also, this works properly under MASM v4.0 and ArrowASM v1.00d.

	Do you know what is going on?

	Thanks.
_____________________________________________________________________________
Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com  |  _   _  |
Harris Corporation, ESS \\    UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | |
Advanced Technology Dept.\\ AETHER: K4VNO          |==============|_/\/\/\|_|
PO Box 37, MS 3A/1912     \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| |
Melbourne, FL 32902        \\  FAX: (407) 729-2537 | FOR MYSELF.  |_________|
Technical Details
Message-ID: <5166@trantor.harris-atd.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!trantor.harris-atd.com!charybdis!sonny

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!trantor.harris-atd.com!charybdis!sonny
From: sonny@charybdis.harris-atd.com (Bob Davis)
Newsgroups: comp.os.msdos.programmer
Subject: MASM 1.0 Question.
Message-ID: <5166@trantor.harris-atd.com>
Date: 2 Jan 91 15:31:11 GMT
Sender: news@trantor.harris-atd.com
Reply-To: sonny@trantor.harris-atd.com (Bob Davis)
Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL
Lines: 30