Re: [stella] Re: DASM 'upgrade' in progress (Textpad Settings)

Subject: Re: [stella] Re: DASM 'upgrade' in progress (Textpad Settings)
From: "Matthew Ozor" <matt@xxxxxxxx>
Date: Thu, 20 Mar 2003 11:06:56 -0500
Here is a little hint then many might already know:

To have TextPad default to 6502 syntax highlighting copy the 6502.syn file
to the textpad "system" folder. Delete the current text.syn and rename the
6502.syn to text.syn.




----- Original Message -----
From: "Andrew Towers" <mariofrog@xxxxxxxxxxx>
To: <stella@xxxxxxxxxxx>
Sent: Wednesday, March 19, 2003 10:14 AM
Subject: [stella] Re: DASM 'upgrade' in progress (Textpad Settings)


> At 01:26 PM 19/03/2003 +0000, you wrote:
> >Also, is there any way you can provide the hooks so that Textpad can
> >understand it?  I don't know what the current cost of Visual Studio is
> >but I've already paid for textpad...
>
> Setting for Textpad were discussed just over a month ago,
>
> http://www.biglist.com/lists/stella/archives/200302/msg00082.html
>
> I have a similar setup whereby I can just press F9 to run dasm,
> capture and view the output, and it runs z26 if the assembly was
> successful (some types of errors don't return an errorlevel, so
> this doesn't always work.) Textpad supports double-clicking on an
> error to jump to the source line with the existing DASM through
> regular expression matching.
>
> To set this up, go to Configure -> Preferences in Textpad, scroll
> down the bottom to Tools, and click Add -> Dos Command. Type in
> any name you like (eg "DoDasm"), and click Apply.
>
> Now the new tool "DoDasm" will appear in the tree view under the
> Tools node. Click on this, and enter the following stuff:
>
> Parameters:
> dodasm.bat $FileName $BaseName
>
> Initial Folder:
> $FileDir
>
> Capture Output: <checked> (other flags at your discretion)
>
> Regular Expression (make sure there are NO spaces at the start/end):
> ^line +\([0-9]+\) +\([^ ]+\)
>
> Registers: File = 2, Line = 1, Column = (empty)
>
> Now click Apply again. Finally go to the Keyboard preferences node
> in the tree view, and find Tools -> DoDasm, and assign a keyboard
> shortcut like F9. You can also add a toolbar button through the
> Customise.. option (right-click on the toolbar area) - the button
> is under Tools, named "User Defined Tool 1".
>
> Now create a batch file called "dodasm.bat" in the folder with
> the source files you'll be editing, and paste this into it:
>
> -------------------------------------------------- dodasm.bat
> @echo off
> if %1x==x goto errmsg
> echo Assembling %1 ...
> echo.
> dasm %1 -f3 -v3 -l%2.lst -o%2.bin
> if errorlevel 1 goto skipit
> copy %2.bin ..\z26
> start ..\z26\z26 -n %2.bin
> goto skipit
> :errmsg
> echo Please switch to a source file before running Dasm.
> :skipit
> -------------------------------------------------------------
>
> Now customise the whole process to your liking ;)
>
> - M.
>
> --------------------------------------------------------------------------
--------------------
> Archives (includes files) at http://www.biglist.com/lists/stella/archives/
> Unsub & more at http://www.biglist.com/lists/stella/

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread