gnupic: question - GPDASM and register names
Subject:
Re: question - GPDASM and register names
From:
Jeff ####@####.####
Date:
31 Oct 2004 20:03:00 +0000
Message-Id: <200410312002.i9VK2hov011679@ylpvm43.prodigy.net>
On Wednesday 27 October 2004 07:58 pm, David McNab wrote:
> Hi,
>
> Is there any way to persuade gpdasm to output register names instead of
> numbers?
>
> Eg:
> BSF STATUS,RP1
> instead of:
> BSF 0x3, 0x6
> ?
>
A first cut at this can be downloaded from
http://home.pacbell.net/theposts/private
This 13Kb tar.gz file contains only new files and modified files from
gputils-0.12.4. Make a temporary directory and copy all files from
gputils-0.12.4 to the temp directory, and then copy the files from the
ungzipped, untarred mod file to the temp directory. Do a 'make clean' and a
'make'. There are two files called test.hex and test.ctl to demonstrate the
modifications. Type:
gputils/gpdasm -a -p 18f252 test.hex > test.dasm
and look at the test.dasm file. Is that the sort of thing you had in mind?
I have no documentation for these mods as of yet, but hopefully the example
test.ctl file will be enough explanation for now. Each line consists of a
control code followed by a byte address, and then appropriate information.
All data in the file is ascii.
Cheers,
Jeff