Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Disassembling a ROM for TASM 3.2

4 views
Skip to first unread message

Nathan

unread,
Jan 23, 2011, 6:41:00 PM1/23/11
to
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]

pe...@nospicedham.nospam.demon.co.uk

unread,
Jan 24, 2011, 12:32:33 AM1/24/11
to
In article <b2d376e6-1f2c-49af...@y31g2000vbt.googlegroups.com>
nathan...@gmail.com "Nathan" writes:

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."

0 new messages