[A83] Basic programs and error handlers


[Prev][Next][Index][Thread]

[A83] Basic programs and error handlers




Take a look at the following piece of code:

ld hl,prog_name
rst 20h
set prgm_running, (iy+newdispflag)
errhandon(testhandler)
bcall(_parseinp)
errhandoff

prog_name:
.db progobj,"MONKEY",0

testhandler:
bcall(_getkey)
 ret
.end

This program will run a basic program named "MONKEY"
I installed an error handler, which waits for a keypress, and
then quits the program. The problem is only that after exiting the=20
asm program, the calcultor brings up an error menu, even though I quit=20
through the error handler
 What am I doing wrong?

/David
Cirrus Programming http://cirrus.tigalaxy.com