Metal In General: System Errors Page Metal System Errors The following is a list of Metal System Errors (SYSERR). For each one, there is the error text that Metal displays, and the value of SYSERR in both hex (base 16) and decimal (base 10, what us humans use). By using this table, you can setup a series of TRAPs for certain SYSERR values - for example: TRAP SYSERR=160 goto IntegerOverFlow TRAP SYSERR=211 goto MissingLabel Note that the Missing Data error will display the command word or character that it was expecting to be next - usually, this is the "(" character, but the second most common one is the comma (","), followed by TO and MODE. SYSERR values: Error Text Number (Hex) Number (Dec) ------------------------------ ------------- ------------- Syntax $80 128 Missing Symbol $81 129 Missing Data $82 130 Device Number out of Range $90 144 Range Error $91 145 Data Type Mismatch $92 146 Command Type Mismatch $93 146 Integer Overflow $A0 160 String Overflow $A1 161 Bad Dispatch Call $A2 162 GOSUB Stack Over 127 $B0 176 RETURN without GOSUB $B1 177 FOR/NEXT Stack Over 8 $B2 178 NEXT without FOR $B3 179 DO Stack Over 8 $B4 180 UNTIL without DO $B5 181 END IF without LONG IF $B7 183 WHILE Stack Over 8 $B8 184 END WHILE without WHILE $B9 185 TRAP Table Full $BA 186 Unable to RETURN from a RUNSUB $BB 187 Unable to RUN a Module $BC 188 Variable Memory Full $D0 208 CPU Stack Overflow $D1 209 Undefined Label $D3 211 Global Label not found $D4 212 Unable to allocate main RAM $D5 213 Bad CALL Format $D6 214 RAM Area Not Allocated $D7 215 Unable to load package $F8 248 Unable to load external $F9 249 Unable to run ASM package $FA 250 Program Halted $FE 254 End of program $FF 255