z80-asm not work executing program

Post Reply
andromeda92
Member
Posts: 67
Joined: Wed Apr 17, 2024 1:05 am

z80-asm not work executing program

Post by andromeda92 »

Hi,
i have the code below:

Code: Select all

bdos    equ     5
;
putstr  equ     9
;
        org     100h
        public _main

_main:        
        ld      c, putstr
        ld      de, hello
        call    bdos
        ret
;
hello:   db      "Hello World!$",13,10
compiling with:

Code: Select all

zcc.exe -v +cpm hello.asm -ohello.com
it work well on CP/M (RunCPM esp32, RunCPM pico,CP/M agon etc ..)

but with this command line:

Code: Select all

z88dk-z80asm.exe -v -mz80  hello.asm -ohello.com
any idea ?
Thanks.
it compil but nothing happens, it goes back to the CPM prompt
andromeda92
Member
Posts: 67
Joined: Wed Apr 17, 2024 1:05 am

Re: z80-asm not work executing program

Post by andromeda92 »

Resolved:
i forgotten -b option
z88dk-z80asm.exe -v -b hello.asm -ohello.com
Post Reply