Giter Site home page Giter Site logo

Comments (4)

BartmanAbyss avatar BartmanAbyss commented on May 2, 2024

What exactly are you trying to do? The default project is already set up for assembly. Just delete main.c and add a .s file (if that doesn't work with the 1.0 version from the Marketplace, try downloading a 1.1 preview from the Github releases)

from vscode-amiga-debug.

sebastianbergmann avatar sebastianbergmann commented on May 2, 2024

I tried that with the latest stable and now with the latest preview of 1.1: open empty directory, Ctrl+Shift+P, select Amiga: Init Project, delete main.c, create main.s, copy&paste http://coppershade.org/asmskool/Tut5.S into main.s, save, configure ROM in launch.json, and F5:

> Executing task: c:\Users\sb\.vscode\extensions\bartmanabyss.amiga-debug-1.1.0-preview21\bin\gnumake.exe -j4 <

Compiling support/gcc8_c_support.c
Assembling support/gcc8_a_support.s
Assembling support/depacker_doynax.s
Linking a.mingw.elf
c:/users/sb/.vscode/extensions/bartmanabyss.amiga-debug-1.1.0-preview21/bin/opt/bin/../lib/gcc/m68k-amiga-elf/10.1.0/../../../../m68k-amiga-elf/bin/ld.exe: obj/gcc8_c_support.o: in function `KPrintF':
C:/Users/sb/Downloads/Amiga/example/support/gcc8_c_support.c:67: undefined reference to `SysBase'
c:/users/sb/.vscode/extensions/bartmanabyss.amiga-debug-1.1.0-preview21/bin/opt/bin/../lib/gcc/m68k-amiga-elf/10.1.0/../../../../m68k-amiga-elf/bin/ld.exe: C:/Users/sb/Downloads/Amiga/example/support/gcc8_c_support.c:64: undefined reference to `SysBase'
c:/users/sb/.vscode/extensions/bartmanabyss.amiga-debug-1.1.0-preview21/bin/opt/bin/../lib/gcc/m68k-amiga-elf/10.1.0/../../../../m68k-amiga-elf/bin/ld.exe: obj/gcc8_c_support.o: in function `_start':
C:/Users/sb/Downloads/Amiga/example/support/gcc8_c_support.c:93: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status 
gnumake: *** [Makefile:33: a.mingw.elf] Error 1
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command c:\Users\sb\.vscode\extensions\bartmanabyss.amiga-debug-1.1.0-preview21\bin\gnumake.exe -j4" terminated with exit code: 1.

This looks to me like the build script tries to compile a C program.

from vscode-amiga-debug.

BartmanAbyss avatar BartmanAbyss commented on May 2, 2024

I made this example assembler project using the source you provided.
asm-test.zip
But please note, that this extension does use GNU assembler which has a different syntax than the tutorials from coppershade.org, have a look at main.s for the changes. If that doesn't suit you, maybe try the amiga-assembly extension instead.

from vscode-amiga-debug.

sebastianbergmann avatar sebastianbergmann commented on May 2, 2024

Thank you.

from vscode-amiga-debug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.