11 May 2018, 11:14 | #1 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Amiga Assembly extension for Visual Studio Code
I've just started a new project of an extension for Visual Studio Code.
Visual Studio Code Extension GitHub The initial features are editor highlighting (existed already but not totally accurate) and code formatting. It's a work in progress... I want to add some hover for documentation on asm and Amiga registers. I'm new to Amiga assembly language so if you have some remarks or requests, or if you want to contribute, you're welcome ! Just in a few lines, why ... (you can skip this part ;-)) Well, after 25 years in my basement, my Amiga 500 is clean and running. Back in the days, i wanted to create a copperlist, but 2mn of reboot after a messy code was too much. Now I have FS-UAE with a save state (0.5 sec for restore), vscode and all the tutorials from Photo (thanks a lot !). But in episode 13, it begins by a code cleaning - and after 20 years of being a software developer, I told myself, my code is really a mess ! I did not want to format it by hand... So I created this extension, maybe it can be useful to someone else. It will be for me to end the episode 13 ! Last edited by prb28; 11 May 2018 at 11:24. |
11 May 2018, 11:25 | #2 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,847
|
there is the one below but it is not working with the latest VS
https://marketplace.visualstudio.com...23456.Linguist |
11 May 2018, 19:42 | #3 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Anything wrong with this one?
https://marketplace.visualstudio.com...attersall.m68k Works well for me. |
11 May 2018, 20:04 | #4 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
I was using this one, it works pretty well, but there is no code formatting.
And if you want to align your instructions and comments, it may be painful. |
09 August 2018, 11:17 | #5 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
There is preview of the 0.7 version with:
The example workspace: https://github.com/prb28/vscode-amiga-wks-example The prebuilt binaries for osx/debian64/windows64: https://github.com/prb28/vscode-amig...ample/releases |
09 August 2018, 13:21 | #6 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Excellent work!
|
10 August 2018, 00:28 | #7 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Thanks !
The FS-UAE gdb remote protocol adapter is mainly a work from Daniel Collin: https://github.com/emoon/fs-uae |
23 August 2018, 16:59 | #8 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Any chance the marketplace can be updated with 0.7?
got this going with stock fs-uae but no debugging? is there a windows build of the fs-uae you use? EDIT: found the prebuilt binaries but couldnt get debugging to work. odd. Last edited by plasmab; 23 August 2018 at 17:33. |
23 August 2018, 19:47 | #9 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
For now, I've no prevision date for the 0.7 release to the market place.
I will like it to be "enough" to fill the basic needs of a developer (need some feedback or use it more to see what's missing). Maybe, it should be synchronized with an official version of fs-uae with the remote debugging option (it is not only on my hands). So, now, I'm finishing the stack trace (call trace) in the debugger by backporting some code from winua 4.0. Now, for your issue on windows, you may have the wrong version of the extension (fs-uae and the extension must be in sync) or a bad path in the .vscode/settings.json and .vscode/launch.json files. Please try this :
I hope this will do the trick ! |
23 August 2018, 20:32 | #10 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Not sure what I did but i got it going. Excellent work!!!!
I really really wish FS-UAE didnt capture the mouse though.. it makes me want to throw my keyboard through the monitor. |
23 August 2018, 21:10 | #11 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Great ! (thanks)
For the mouse... I'm used to it but maybe with the option : automatic_input_grab=0, it will be better. I didn't try but you can add it to the .vscode/launch.json. |
23 August 2018, 22:25 | #12 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Good shout. Love this work. Wish that hatari had gdb support then we could reuse this for Atari dev too.
|
02 September 2018, 12:25 | #13 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
80% of my code could work for an Atari editor/debugger ... just some work to do.
But It my early days I was an amiga guy ;-). |
02 September 2018, 12:40 | #14 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
|
02 September 2018, 12:45 | #15 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Of course, the implementation of the gdb remote protocol on the Hatari emulator is needed, but if it already has a debugger, "only" (maybe not easy) the communication part has to be done.
|
02 September 2018, 12:48 | #16 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
|
29 September 2018, 22:37 | #17 |
Registered User
Join Date: Mar 2018
Location: UK
Posts: 1
|
Not working for me on Windows 10. I installed the extension 0.8 to VC. Download the tools but when it comes to configure the tools and FS-UAE in VC things has change. Would be cool if there is a video that shows how this is done.
Anyway form the little I saw when it works fully this will be a great. Looking forward to use it. |
30 September 2018, 12:01 | #18 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
@abelanet , more than a video (I'm not really good at it ) : just use this link for windows 10 64b : https://github.com/prb28/vscode-amig...indows_x64.zip
After :
Hope this helps. |
30 September 2018, 12:23 | #19 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
I’ve not had any issues with 0.8 on Win10
|
30 September 2018, 15:41 | #20 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Just installed it to have a play with and it's great. Why does it say vasm needs to be configured though? How do you configure it?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
assembly code to test for assign (2.0+) | jotd | Coders. System | 2 | 27 December 2017 23:16 |
very basic C/ASM/Visual Studio hand holding | Sephnroth | Coders. C/C++ | 2 | 08 March 2016 20:15 |
Amiga Audio/Visual | KhneFr | request.Other | 6 | 03 January 2015 10:25 |
Profiling WinUAE with Visual Studio 2013 | mark_k | support.WinUAE | 3 | 14 January 2014 20:26 |
amiga visual editor | thinlega | request.Apps | 1 | 22 January 2003 15:48 |
|
|