Today I compiled my first program written in Assembler.
Even though it was only a few lines, it felt like a major victory :-)
It started with a desire to understand exactly how a CPU works, with registers and addresses and bytecode instructions etc.
(Maybe I'm still dreaming of writing my own emulator one day, haha )
There are lots of tutorials. The Photon one is famous.
I also found this one very nice, especially for total beginners like me.
I tried several different Assemblers.
Ok, so it's clear that I don't have the patience anymore to use the native "IDE editors" dcirectly on the Amiga. I'm not that masochistic.
writing code, I'll do on a modern machine, but maybe the compilation and linking step will remain on the amiga.
(Maybe ... VASM and VLINK seems like a really nice tool that produces tiny binaries, so ...)
Ah ... and there are also Amiga ports of Vasm and Vlink (they are included in the VBCC package)
Lots of the Amiga Assembly examples are not system friendly though...
I mean: they are super interesting to see how exactly the Amiga works (like "write to that memory addres to change color 1" , "read that memory address to check the joystick button" ...)
But I don't know if I want to go there.
Doing system-friendly stuff certainly is possible, but why do that in assembler?
In the end- it's of course perfectly viable to mix assembler and C, creating linkable objects in one or the other, and combine them in 1 executable.
TODO:
Check out ASM-Two - seems like a nice package for basic amigas( it doesn't support 020 oir higher CPUs, but still)
And this is a nice thread with valuable info. (Look who started it :-) Hi Guy! )