When I try to run assembly code in vs code I encounter a problem as shown in the image below:
I try many extension but to no avail, I also try (Amiga Assembly) extension But I got another problem as shown in the image below:
I don’t know how to solve this problem, and how to run assembly code on mac by using vs code
2
Answers
Finally I got the solution of this problem. If anyone has the same problem, try this solution. It may work for you.
First thing I download extension called (MASM/TASM)
Finally, Right-Click in your code then click (Run ASM code) as shown in the image below:
I hope this solution helped you
I could not find a specific extension for Mac Assembler. I’d recommend using VSCode as your editor and CodeRunner with custom commands.
Alternatively, you could use the terminal pane to manually execute the Mac OSX assembler commands.
Here’s a link to the as command reference from Apple. It’ll probably be a useful reference for compiling and linking.