Article View: comp.lang.asm.x86
Article #37Re: Disassembling a ROM for TASM 3.2
From: pete
Date: Mon, 24 Jan 2011 05:32
Date: Mon, 24 Jan 2011 05:32
62 lines
4186 bytes
4186 bytes
In article <b2d376e6-1f2c-49af-9d93-84b2630813b2@y31g2000vbt.googlegroups.com>
nathancbaker@gmail.com "Nathan" writes:
> On Jan 23, 2:14�pm, Ruud <ruud.baltis...@nospicedham.gmail.com> wrote:
> > Hello,
> >
> > The Commodore CBM 720 is a 6502 machine (http://www.6502.org/users/
> > sjgray/computer/cbm2/index.html) and can be equiped with a 8088 card
> > (http://www.6502.org/users/sjgray/computer/cbm2/pic-8088board.jpg).
> > I'm busy disassembling the onboard EPROM. I assemble the result using
> > TASM 3.2. The last time I wrote for the 8088 is twenty years ago. The
> > disassembling goes well with one exception and I have two questions:
> > - I assemble and create a COM file at the end. The file doesn't
> > contain an ORG statement but fortunately no long jumps etc. have been
> > used so the COM file ends up the same as the original BIN file. My
> > question: what parameters are needed so I can tell TASM to create a
> > BIN file directly from the source file containing "ORG = 0F000h"?
> > - I have two lines and I know what they do but I don't know how to
> > translate it in assembler:
> > ; � � � � � � � mov � � dl,low �offset serv220
> > � � � � � � � � mov � � dl,61h � � � � �
> � � � � � � � � � �; original disassembly
> > ; � � � � � � � mov � � dh,high offset serv220
> > � � � � � � � � mov � � dh,0F1h � � � � �
> � � � � � � � � ; original disassembly
> > ....
> > serv220: � � � � � � � � � � � � � � � �
> � � � � � � � � � ; = 0F161H
> > ....
> > What is the correct syntax?
> >
>
> Well, since I don't have a Turbo Assembler User's Manual handy, I
> would simply append 61184 ($F000 - $100) 'NOP' instructions in front
> of the code. {or 61537 ($F161 -$100)}
>
> Alternatively, find yourself a copy of that Manual.
>
> Nathan.
> [borland.public.tasm added]
Nor do I have the manual to hand, but tasm 3.1 seems to accept an ORG
directive happily. I'd try something like this
ORG 0
ZERO equ $
ORG 0F000h
; your code here
....
� � � � mov � � dl, HERE ANF 0FFh ; = 61h
� � � � mov � � dh, HERE SHR 8 ; = F1h
....
serv220: � � � � � � � � � � � � � � � �
HERE equ ($ - ZERO) ; = 0F161H
....
You could try something like that...
Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."
Technical Details
Message-ID:
<1295847153snz@nospam.demon.co.uk>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<2548072f-afd5-461b-9074-4e2f0ae6f9de@d8g2000yqf.googlegroups.com> <b2d376e6-1f2c-49af-9d93-84b2630813b2@y31g2000vbt.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fbd1940eb5,54d66198aa2904f1 X-Google-Attributes: gidfbd1940eb5,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 24 Jan 2011 00:19:53 -0600 From: pete@nospicedham.nospam.demon.co.uk Subject: Re: Disassembling a ROM for TASM 3.2 Message-ID: <1295847153snz@nospam.demon.co.uk> Date: Mon, 24 Jan 2011 05:32:33 +0000 (UTC) Organization: PDL References: <2548072f-afd5-461b-9074-4e2f0ae6f9de@d8g2000yqf.googlegroups.com> <b2d376e6-1f2c-49af-9d93-84b2630813b2@y31g2000vbt.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Newsgroups: comp.lang.asm.x86,borland.public.tasm Approved: nathancbaker@nospicedham.gmail.com - comp.lang.asm.x86 moderation team. Lines: 62 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-bZiiakjtw0Ju8/KHXt5GfRrjLGkdimBW/gDkBJhP0GFsN6gh8xjGryf1XCysTYRNtNxVq3SapiwoZAm!Bc4MFiB2vTqhUXxQtN421WHqyqdJOAmjIE8LugrRP5pkQkt/wqAchUn8AQ== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3657