Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Counting in binary is just like counting in decimal -- if you are all thumbs. -- Glaser and Way


programming / alt.lang.asm / label question

SubjectAuthor
* label questionPeter Cheung
`- Re: label questionAlexei A. Frounze

1
Subject: label question
From: Peter Cheung
Newsgroups: alt.lang.asm
Date: Sat, 14 Mar 2020 04:07 UTC
X-Received: by 2002:ac8:340d:: with SMTP id u13mr14744909qtb.235.1584158843040;
Fri, 13 Mar 2020 21:07:23 -0700 (PDT)
X-Received: by 2002:a25:238f:: with SMTP id j137mr21941086ybj.115.1584158842546;
Fri, 13 Mar 2020 21:07:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.lang.asm
Date: Fri, 13 Mar 2020 21:07:22 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=219.76.15.2; posting-account=bv9fUwoAAAALZPMyH_uNDx4MtNzAsvy6
NNTP-Posting-Host: 219.76.15.2
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f1a2c04-f30b-48d8-879e-898f47489b1c@googlegroups.com>
Subject: label question
From: mcheun...@gmail.com (Peter Cheung)
Injection-Date: Sat, 14 Mar 2020 04:07:23 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1345
X-Received-Body-CRC: 2640245720
View all headers
Hi

Why label peter is not equal to 0x4000?

/Users/peter>nasm -l a.lst a.asm
/Users/peter>cat a.lst
     1                                  bits 16
     2                                  org 0x4000
     3                                  peter:
     4 00000000 B8[0000]                mov ax,peter

thanks
Peter


Subject: Re: label question
From: Alexei A. Frounze
Newsgroups: alt.lang.asm
Date: Sat, 14 Mar 2020 06:12 UTC
References: 1
X-Received: by 2002:a37:b902:: with SMTP id j2mr16995498qkf.247.1584166321282;
Fri, 13 Mar 2020 23:12:01 -0700 (PDT)
X-Received: by 2002:a25:d407:: with SMTP id m7mr21640338ybf.190.1584166321136;
Fri, 13 Mar 2020 23:12:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.lang.asm
Date: Fri, 13 Mar 2020 23:12:00 -0700 (PDT)
In-Reply-To: <4f1a2c04-f30b-48d8-879e-898f47489b1c@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=24.4.130.174; posting-account=r_UqYQoAAADroB0Qe_EzH25J5Oyuce4G
NNTP-Posting-Host: 24.4.130.174
References: <4f1a2c04-f30b-48d8-879e-898f47489b1c@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d500b93c-feb7-4bf6-a6de-d38fc6907850@googlegroups.com>
Subject: Re: label question
From: alexfrun...@gmail.com (Alexei A. Frounze)
Injection-Date: Sat, 14 Mar 2020 06:12:01 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
On Friday, March 13, 2020 at 9:07:24 PM UTC-7, Peter Cheung wrote:
Why label peter is not equal to 0x4000?

/Users/peter>nasm -l a.lst a.asm
/Users/peter>cat a.lst
     1                                  bits 16
     2                                  org 0x4000
     3                                  peter:
     4 00000000 B8[0000]                mov ax,peter

It probably simply doesn't make an exception for the
binary output format and gives you the kind of output
it produces for object file formats (in which it naturally
doesn't know what the addresses are).

Use ndisasm if you want to see 0x4000.

Alex


1
rocksolid light 0.7.2
clearneti2ptor