I use the latest Z88DK but the given examples for CP/M doesn't work.
Nick Brok wrote:I use the latest Z88DK but the given examples for CP/M doesn't work.Could you point to which examples are not working, please?
And how did you compile them?
With the makefile
It compiles, but i.e. ddir.c repeats displaying the first directory entry.This is not only in Scrumpel but also on Z80pack emulator.
It is about the ddir from z88dk not the internal dir command.
If your terminal emulator is providing CR+LF, then the CP/M CCP baulks.The symptom is that the inbuilt DIR command only returns one drive entry, even though many files are in drive.Use a simple LF to terminate command lines. Could this be the problem?Regards, Phillip
Nick Brok wrote:I use the latest Z88DK but the given examples for CP/M doesn't work.Could you point to which examples are not working, please?ddir.c
masterm.c
Nick Brok wrote:I use the latest Z88DK but the given examples for CP/M doesn't work.Could you point to which examples are not working, please?ddir.cYes, I've found ddir.c and confirmed it has the symptoms you refer to.It gets stuck printing and repeating the first file in the directory.
The right thing to do is to raise an issue on z88dk github.
RC2014 CP/M-IDE
feilipu 2019
> :?
> cpm sys.cpm user.cpm
Opening "sys.cpm" at LBA 104146
Opening "user.cpm" at LBA 136914
Initialised CP/M
A>b:
B>a:xmodem ddir.com /r
File created
Receiving via CON with CRCsCCC
B>ddir
-- Directory of volume #1 --
CPSKER.HEX ........70912
CPVGEN.HEX .........2816
AES256.C ........13056
AES-DEMO.COM .........9216
DEMO.C .........2304
RANDOM.TXT ..........256
Z80DAA.COM .........1792
MAND180.HEX .........6016
STARTREK.BAS ........20992
MANDEL80.HEX .........6400
STARTREK.COM ........39936
MANDEL80.COM .........2304
MAND180.COM .........2176
1BACK.PT3 .........1280
2SANX.PT3 ........12544
3CHILD.PT3 .........2560
4DAVOS.PT3 .........5248
13SYNC.PT3 ........11264
ym2149-O.bas ..........256
ym2149-D.bas ..........384
ym2149-D.BAS ..........384
TEST.COM .........3456
PASSWORD.COM .........3456
ELIZA.COM .........8192
UMCHESS.COM .........7936
LADDER.COM ........39936
LADDER.DAT ..........512
LADCONF.COM ........22528
FLOAT.COM .........4608
RANDOM1.TXT ......1048576
FTEST.COM ........10496
STAR32.COM ........39552
STAR32F.COM ........40192
1M.TXT ......1048576
HELLOWC.COM .........6272
HELLOWN.COM .........3456
DDIR.COM .........7552
Total bytes: 2507392.
B>ddir *.com
-- Directory of volume #1 --
AES-DEMO.COM .........9216
Z80DAA.COM .........1792
STARTREK.COM ........39936
MANDEL80.COM .........2304
MAND180.COM .........2176
TEST.COM .........3456
PASSWORD.COM .........3456
ELIZA.COM .........8192
UMCHESS.COM .........7936
LADDER.COM ........39936
LADCONF.COM ........22528
FLOAT.COM .........4608
FTEST.COM ........10496
STAR32.COM ........39552
STAR32F.COM ........40192
HELLOWC.COM .........6272
HELLOWN.COM .........3456
DDIR.COM .........7552
Total bytes: 253056.
B>