Jump to content
IGNORED

WUDSN + Mad Pascal - quick hack increasing usability.


willyvmm

Recommended Posts

For some time WUDSN allows editing (Mad) Pascal .pas files. Unfortunately the integration is not finished yet or I'm not able to use that.

I have decided to use Mad Pascal for my latest project. Unfortunately the "Geany" solution is not enough. No direct debugging support.

 

So i have decided to make WUDSN bit more (Mad) Pascal friendly.

 

The main assumption was:

Quick and Easy (Dirty not excluded).

 

1. Create a new WUDSN project, and name it xTemplate.

  - The "xTemplate" name make it appearing on the end of the list almost always.

 

 

 

2. Define Builder for Pascal.

  - Project->Properties->Builders->New

  - [OK]

  - Name->Mad Pascal

  - Location->Enter or click out path to your "mp(.exe)"

  - Working Directory->Enter or click out:  " ${workspace_loc}${project_path}"

  - Arguments->Enter or click out: ${workspace_loc}${selected_resource_path}

  - [OK]

 

506453780_WUDSNMP-1.thumb.png.8fa10a64ad584ec115ca189d4a608d8b.png

 

3. Associate *.a65 files with MADASs in WUDSN.

  - Window->Preference->General->Editors->File Associations->Add..

  - Enter *.a65

  - Select MADS Editor

  - [APPLY AND CLOSE]

 

481911821_WUDSNMP-2.thumb.png.83934de7f41015042e6e22e07c76d07a.png

 

4. Slightly modify MADS compilation params.

  - (should not affect pure madas programs, and allow Mas Pascal generated files compilation)

  - Window->Preference->Languages->Assembler->Atari 8Bit Assemblers->MADS

  - In the Parameters field, enter/copy same text that is in default field, and add at the end -x -i:_path_to_your_mp_instalation_folder_/base

  - [APPLY]

 

1700477946_WUDSNMP-3.thumb.png.facbe9673fa643cb145b0732d5c6d66d.png

 

5. Make your life easier, and modify keyboard shortcuts.

  - Window->Preference->General->Keys

  - Find "Build All"-"CTRL+B" and remove it -> [Unbind Command]

  - Find "Build Project" and associate it with "CTRL+B" (or any other prefered) -> click on [BINDING] field and press your desired short key [CTRL+B]

  - In the "when" field you should see "In Windows" - if not - just fix it.

  - [APPLY AND CLOSE]

 

1844022297_WUDSNMP-4.thumb.png.eb6cd9fb206816477ce3f8e42d402d0d.png

 

Done.

 

 

How to use:

 

  - Make a copy of your reference project (xTemplate) - mark it on WUSDN, CTRL+C followed by CTRL+V

  - Give it a new name

  - Create a new .pas file, enter your code ... etc...

  - When in Your .pas file window, press CTRL+B, mp will create new file: _your_project_name.a65

  - In the "Project Explorer" window (usually the most left window) mark your new project, ane press F5 (refresh) the new generated _your_project_name.a65 will apear in the project tree.

  - Double click on the _your_project_name.a65 file to open it.

  - Inspect the file And/Or mark your desired Breakpoints.

  - Press CTRL+9 to compile.

  - or

  - Press CTRL+0 to compile and run. In case of Altirra the BreakPoints will be activated. (afaik)

  - Enjoy.

 

   

I have no idea if it's the best or simplest way to do that, but it works (at least for me) and i think is worth to share.

 

 

Edited by willyvmm
  • Like 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...