Amstrad 6128 and assembler

Amstrad CPC and NC systems
Post Reply
andromeda92
Member
Posts: 67
Joined: Wed Apr 17, 2024 1:05 am

Amstrad 6128 and assembler

Post by andromeda92 »

Hi,
I want to compil assembler file for CPC 6128.

what is the exact compiler command?

This work but i don't now if it is a right order, the bin file is created.

z88dk-z80asm.exe -v -l myprog.asm -omyprog.bin

I still have this error:

Code: Select all

Predefined constant: __CPU_Z80__ = 1
Predefined constant: __CPU_ZILOG__ = 1
Predefined constant: __FLOAT_GENMATH__ = 1
Library 'z88dk-z80asm.lib' not found
Reading library 'c:/z88dk/lib/z88dk-z80asm.lib'
Assembling 'D:/donnees/dev/Z88DK/test/src/test.asm'
Writing object file 'D:/donnees/dev/Z88DK/test/bin/test.bin'
it not work on emulator , may be i have to transalte header for CPC ?

thank for your help.
stefano
Well known member
Posts: 2328
Joined: Mon Jul 16, 2007 7:39 pm

Re: Amstrad 6128 and assembler

Post by stefano »

unless you are building a CP/M COM file, it is probably necessary to package your program properly with z88dk-appmake.
I suppose you already built CPC6128 programs in C, right? how did you build them?
It helps in understanding the file type you are expecting on output.
andromeda92
Member
Posts: 67
Joined: Wed Apr 17, 2024 1:05 am

Re: Amstrad 6128 and assembler

Post by andromeda92 »

it was to compile an assembler file, but in the meantime I found:
z88dk-z80asm.exe -v -mz80 -b -s -l -g mypro.asm
i use WinCPC for loading the bin file and it work.
Thanks you.
User avatar
dom
Well known member
Posts: 2316
Joined: Sun Jul 15, 2007 10:01 pm

Re: Amstrad 6128 and assembler

Post by dom »

Ah right, yes. By default z80asm produces an object file that can be used for linking with others when producing a binary. To create a binary from a single .asm file you need to add -b to actually create a binary.
Post Reply