19 June 2020, 08:48 | #81 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Perfect. Thanks Deimos! I can rip out my jump table.
|
19 June 2020, 11:06 | #82 | |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Quote:
|
|
19 June 2020, 11:33 | #83 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
"d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "cc", "memory". You can still do the normal movem thing to save them yourself, if you prefer, but the compiler may be able to be more selective about what it saves. EDIT: There are some caveats, such as not being allowed to modify inputs unless they're also specified as outputs, so, assuming you are passing inputs, they may have to be listed as outputs rather than as clobbers. https://gcc.gnu.org/onlinedocs/gcc/E...atch-Registers Last edited by deimos; 19 June 2020 at 11:58. |
|
19 June 2020, 11:56 | #84 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Ok with your examples and that web page it's getting clear now. Much appreciated
|
08 July 2020, 12:16 | #85 |
Registered User
Join Date: Apr 2011
Location: Fareham/UK
Posts: 17
|
Error trying to follow instructions to start a project
Hi, as above. I've downloaded and installed the VScode and then installed the extension (in fact, I tried twice, uninstalling and re-installing vscode) and then, following the instructions I tried to create an empty folder, at which point I get this message:
One or more dirty editors could not be saved or reverted - try saving or reverting the dirty editors first and then try again." I can't even guess what that means! However pushing on, I then try to Ctrl-Shift-P and select Amiga: Init project, but get a further error "Failed to Init Project", which is probably related to the initial message , but I don't know. And one last question (for now!) How do I do this: Open .vscode/launch.json - I don't know where to find this. Thanks for your help. |
08 July 2020, 12:39 | #86 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
Where are you trying to create your empty folder? The vscode/launch.json file will be there once you've successfully created a project. |
|
09 July 2020, 08:22 | #87 |
Registered User
Join Date: Apr 2011
Location: Fareham/UK
Posts: 17
|
Yes, that worked, thank you. Still got problems - nothing ever seems to work out of the box as it were - but I'll try to solve them before I come running here!
|
02 August 2020, 14:04 | #88 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 384
|
I'm using this extension to code an Amiga app and I'm following the Amiga ROM Kernel Reference Manual to try to open a port so that I can use console.device. CreatePort() is what I need to use but apparently that is only available in a library called amiga.lib? Is there anyway of doing this via this vscode extension?
|
03 August 2020, 09:00 | #89 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
https://github.com/adtools/libnix/bl...c/CreatePort.c Code:
struct MsgPort *CreatePort(CONST_STRPTR name,LONG pri) { APTR SysBase = *(APTR *)4L; struct MsgPort *port = NULL; UBYTE portsig; if ((BYTE)(portsig=AllocSignal(-1)) >= 0) { if (!(port=AllocMem(sizeof(*port),MEMF_CLEAR|MEMF_PUBLIC))) FreeSignal(portsig); else { port->mp_Node.ln_Type = NT_MSGPORT; port->mp_Node.ln_Pri = pri; port->mp_Node.ln_Name = name; /* done via AllocMem port->mp_Flags = PA_SIGNAL; */ port->mp_SigBit = portsig; port->mp_SigTask = FindTask(NULL); NEWLIST(&port->mp_MsgList); if (port->mp_Node.ln_Name) AddPort(port); } } return port; } |
|
03 August 2020, 13:14 | #90 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 384
|
Thank you so much Deimos! Now I can maintain Kickstart 1.3 backwards compatibility for the DF0 Diskmag project I am working on! <3
|
23 August 2020, 17:46 | #91 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
What a great stuff! I have tried latest release 1.1.0-preview31 and works like a charm!
Only two things. Vscode shown that 'a0, 'd0' etc etc are unknown registers. It compiles right but it is strange. And in the profiler screen I can´t see any red bar color like that in the screen showed here. Lets play a bit more. It rocks!! |
24 August 2020, 11:48 | #92 | |
Registered User
Join Date: Dec 2016
Location: England
Posts: 87
|
Quote:
I'm not even sure there's a way to fix it directly, but you should be able to wrap the offending code in an Code:
#ifndef __INTELLISENSE__ |
|
25 August 2020, 11:48 | #93 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,406
|
I've been a bit confused about this. Suppose I want to create a program that loads in data from disk. How do I get the debugger to also have this data available in the debug environment?
I'm sure I'm missing something really obvious here, but I've not found the correct way to do this. |
03 October 2020, 13:56 | #94 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,801
|
@Bartman,
Is it possible to use your setup for AmigaOS system programming targeting 3.x too? |
03 October 2020, 14:48 | #95 |
Registered User
Join Date: Jul 2011
Location: UK
Posts: 341
|
This is really cool. Is there a way of using Visual Studio Community 2019?
|
09 October 2020, 22:24 | #96 |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
|
09 October 2020, 22:26 | #97 | |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
Quote:
|
|
09 October 2020, 22:28 | #98 | |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
Quote:
|
|
09 October 2020, 22:30 | #99 |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
I'm not monitoring this thread as often as I probably should, so if you don't get a reply from me, try on github instead.
|
20 August 2021, 15:54 | #100 |
Registered User
Join Date: Mar 2019
Location: Nu Forest UK
Posts: 31
|
This looks very good. Thanks to Bartman for the hard work.
However, is there a way of using this with VSCodium, rather than having to go on the MS marketplace? (Thats the open-source trackerless version, which should work exactly the same internally.) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga Assembly extension for Visual Studio Code | prb28 | Coders. Asm / Hardware | 342 | 15 December 2023 21:22 |
Visual Studio Code Blitz Basic extension | earok | Coders. Blitz Basic | 29 | 16 July 2019 17:59 |
very basic C/ASM/Visual Studio hand holding | Sephnroth | Coders. C/C++ | 2 | 08 March 2016 20:15 |
Profiling WinUAE with Visual Studio 2013 | mark_k | support.WinUAE | 3 | 14 January 2014 20:26 |
|
|