Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

MAC user's dynamic debugging list evaluator? Never heard of that.


devel / comp.lang.asm.x86 / MASM 5.1 16/32-bit programming

SubjectAuthor
o MASM 5.1 16/32-bit programmingPaul Edwards

1
MASM 5.1 16/32-bit programming

<5f197350-7666-47a9-b36d-ec0b2ede1db8n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=443&group=comp.lang.asm.x86#443

  copy link   Newsgroups: comp.lang.asm.x86
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@nospicedham.gmail.com (Paul Edwards)
Newsgroups: comp.lang.asm.x86
Subject: MASM 5.1 16/32-bit programming
Date: Thu, 25 May 2023 22:23:26 -0700 (PDT)
Organization: A noiseless patient Spider
Lines: 49
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f197350-7666-47a9-b36d-ec0b2ede1db8n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Date: Fri, 26 May 2023 05:23:26 +0000
Injection-Info: dont-email.me; posting-host="23bc56e5437e092e5b9419f6e2deaf76";
logging-data="4097396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RHrz1X4rMLevaDq/q/Z6ykDxoXtXIlCU="
User-Agent: G2/1.0
Cancel-Lock: sha1:Ti06ShyYkvQRWpw6DgdPEx88lKo=
 by: Paul Edwards - Fri, 26 May 2023 05:23 UTC

A couple of days ago I received my purchase of
Microsoft C 5.1 on 720k 3.5" floppies.

I was shocked that the disks all read fine.

Anyway, it includes MASM 5.1. I wasn't sure what to expect.

I gave it this code (which works fine on masm 6.15):

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/protinta.asm#l65

and assembled like this:

masm -c -DNEWMODEL -Dmemodel=large -D@model=5 -D@datasize=1 protinta.asm,,,,

(some of the defines don't exist, but I'm happy to provide them manually).

It complained about lines 65, 66, 67 and 71.

All of them are references into the TEXT32 segment.

The error is:

protinta.asm(65): error A2057: Illegal size for operand

I'm not sure what that means.

Also note that I don't want to split into segment/offset
pairs, because I also assemble this code with as86
which uses the a.out format for object code, even
though it ends up (using ld86) as an MSDOS executable.

Note that I assemble on masm 6.15 like this:

ml -c -omf -DNEWMODEL -nologo -Dmemodel=large -DWATCOMC -DNEED_DISPLAYC protinta.asm

wasm also accepts the code.

Is there any way I can get rid of these errors while still
allowing as86 to work?

If I have to, I will use conditional assembly, but even then
I don't know what to write.

If I have to use conditional assembly I am happy to use
segment/offset splitting, if that's what masm 5.1 requires.

Thanks. Paul.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor