1 (edited by Luzie 2019-10-19 15:33:07)

Topic: HOWTO right exiting .DOT commands which are started with parameters?

Hi,

sorry, but I´m new into programming Z80 and esxDOS, so this is a Newbie question.

I struggle about exiting a selfprogrammed .DOT-command which started with parameters.
Starting the .DOT-command without any parameters runs it OK with 0 OK, 0:1

But when running passing a parameter, it shows me this on esxDOS 0.8.6: !q, 0:1
or on esxDOS 0.8.7: M, 0:1
or similar strings.

On: http://board.esxdos.org/viewtopic.php?pid=969#p969
I find something about howto right exiting a .DOT-command. But it´s too complicated for me as beginner to understand.
Can someone please give me a source-piece to add to my .dot-command to exit it right with 0 OK, 0:1

I´m on esxDOS 0.8.7 or esxDOS 0.8.6 under DivIDE-Emulation (SpecEmu).

Or should try to use Z88DK as "Assembler only" as I find it hard for me to get into programming C. And Z88DK´s .DOT-command compiling options may fix me problems?

Regards,

Luzie

2

Re: HOWTO right exiting .DOT commands which are started with parameters?

Luzie wrote:

Can someone please give me a source-piece to add to my .dot-command to exit it right with 0 OK, 0:1

or a;
ret;

Here's an example dot command using the esxDOS 0.8.5 API that behaves differently depending on parameters / no parameters:

https://github.com/cheveron/unodos3/blo … c/help.asm

3 (edited by Luzie 2019-10-21 16:42:53)

Re: HOWTO right exiting .DOT commands which are started with parameters?

aowen wrote:
Luzie wrote:

Can someone please give me a source-piece to add to my .dot-command to exit it right with 0 OK, 0:1

or a;
ret;

Here's an example dot command using the esxDOS 0.8.5 API that behaves differently depending on parameters / no parameters:

https://github.com/cheveron/unodos3/blo … c/help.asm

Thank you very much!

or a;
ret;

works OK for me!

4 (edited by Luzie 2019-10-23 16:58:50)

Re: HOWTO right exiting .DOT commands which are started with parameters?

Now, thanks to aowen, I got my first .DOT-command working which utilize parameters (here just for displaying help or not):

It´s called .checkerb

From help:
.checkerb DOT-command Version: v1.0 by Luzie

Display a Checkerboard of Attributes over your Screen.
Helps you to find hidden content in loading screens like those on:
http://www.worldofspectrum.org/equinox/eggs/screens.php

Usage:
Without Parameters: Displays Checkerboard
With Parameters: Displays this help-screen. Press any key to quit!

Download Package with ASM-Source-Code and compiled .checkerb here: https://www.magentacloud.de/lnk/O8gGDSLV