Problems with the Z80 Assembler

I am trying to write in the Z80 Assembler in the CP / M 2.2 emulator (z80pack) in Debian:

A>dir
A: DUMP     COM : SDIR     COM : SUBMIT   COM : ED       COM
A: STAT     COM : BYE      COM : RMAC     COM : CREF80   COM
A: LINK     COM : L80      COM : M80      COM : SID      COM
A: WM       COM : WM       HLP : ZSID     COM : MAC      COM
A: TRACE    UTL : HIST     UTL : RESET    COM : LIB80    COM
A: HIST     COM : DDT      COM : Z80ASM   COM : CLS      COM
A: SLRNK    COM : MOVCPM   COM : ASM      COM : LOAD     COM
A: XSUB     COM : LIB      COM : PIP      COM : SYSGEN   COM
A>
A>z80asm

Z80 ASSEMBLER Copyright (C) 1983 by SLR Systems Rel. 1.30 #F10268

%STROUT EQU 9
STROUT EQ
A>Z80ASM

Z80 ASSEMBLER Copyright (C) 1983 by SLR Systems Rel. 1.30 #F10268

%A
A
A.Z80 - File Not Found Line 00000

%adc a,R
adc a,
ADC.Z80 - File Not Found Line 00000

R
R.Z80 - File Not Found Line 00000

%ORG 100h
ORG 1Command Syntax Error - Abort

A>

It just says “File not found” every time I try to write a line. I was looking for guidance, but he did not say how to start. Is there a special command I have to enter? Since the M80 (Macro-Assembler 80) also gives an error on every line.

+4
source share
1 answer

You need to create a file containing your Z80 code called whatever.Z80, and then provide it whateverat the invitation %.

Therefore, you can edit your code to change your program, and not completely rewrite all the code every time.

+2
source

Source: https://habr.com/ru/post/1615910/


All Articles