Ti Constructor
 
Loading...
Searching...
No Matches
errors.c
Go to the documentation of this file.
1
2#pragma once
3
4
5
11void CustomError(char* error_text) __naked __z88dk_callee{
12 #asm
13 pop de
14 pop hl
15 push de
16
17 ld de, appErr1
18 ld bc, 11
19 ldir
20
21 abcall(_ErrCustom1)
22 ret
23 __endasm;
24}
25
26
27
28
36#define SyntaxError() bjump( _ErrSyntax )
37
41#define OverflowError() bjump( _ErrOverflow )
42
46#define DivideByZeroError() bjump( _ErrDivBy0 )
47
51#define SingularityError() bjump( _ErrSingularMat )
52
56#define DomainError() bjump( _ErrDomain )
57
61#define IncrementError() bjump( _ErrIncrement )
62
66#define NonRealError() bjump( _ErrNon_Real )
67
71#define DataTypeError() bjump( _ErrDataType )
72
76#define ArgumentError() bjump( _ErrArgument )
77
81#define DimensionMismatchError() bjump( _ErrDimMismatch )
82
86#define DimensionError() bjump( _ErrDimension )
87
91#define UndefinedError() bjump( _ErrUndefined )
92
96#define MemoryError() bjump( _ErrMemory )
97
101#define InvalidError() bjump( _ErrInvalid )
102
106#define BreakError() bjump( _ErrBreak )
107
111#define StatError() bjump( _ErrStat )
112
116#define NoSignChangeError() bjump( _ErrSignChange )
117
121#define IterationsError() bjump( _ErrIterations )
122
126#define BadGuessError() bjump( _ErrBadGuess )
127
131#define TolNotMetError() bjump( _ErrTolTooSmall )
132
136#define StatPlotError() bjump( _ErrStatPlot )
137
141#define LinkError() bjump( _ErrLinkXmit )
142
143
144
void CustomError(char *error_text) __naked __z88dk_callee
Show the error screen with custom text.
Definition errors.c:11
#define abcall(__LABEL__)
The asm for a bcall.
Definition essentials.c:71