It's supplied as source, so you have to build it.
Make sure you have the build system installed:You likely want vasm 2.0 from here: vasm portable and retargetable assembler. Download the vasm2_0.tar.gz file.
Now extract it:Then go into the folder that was just extracted from the archive:This is where you get to make a decision that we can't help you with: what CPU and syntax variant you need. I'm going to choose Z80 and Standard, because that would be my choice.
So from the Compilation Instructions:This creates an executable vasmz80_std. It doesn't put it anywhere in your PATH, so you'll have to run it from that folder for now.
Here's a small test source file, alfabet.asm:Assemble it:This will put the output executable in a hex file, but generate this pretty listing:If you ran that code on an Amstrad CPC, it would print the alphabet in upper case.
Make sure you have the build system installed:
Code:
sudo apt install build-essential
Now extract it:
Code:
tar xf vasm2_0.tar.gz
Code:
cd vasm
So from the Compilation Instructions:
Code:
make CPU=z80 SYNTAX=std
Here's a small test source file, alfabet.asm:
Code:
.org 0x8000ld a, 'A'ld b, 26oc:call 0xbb5ainc adjnz ocret
Code:
./vasmz80_std -Fihex -o alfabet.hex -L alfabet.lst alfabet.asm
Code:
Sections:00: "org0001:8000" (8000-800B)Source: "alfabet.asm" 1: .org 0x800000:8000 3E41 2: ld a, 'A'00:8002 061A 3: ld b, 2600:8004 CD5ABB 4: oc:call 0xbb5a00:8007 3C 5: inc a00:8008 10FA 6: djnz oc00:800A C9 7: ret 8: Symbols by name:oc A:8004Symbols by value:8004 oc
Statistics: Posted by scruss — Fri Dec 27, 2024 3:56 am