; =================================================== ; Microsoft BASIC v2 for MSX System v3.0 ; ; Error messages and constants ; Disassembled by Romychs @ 2026-09-03 ; =================================================== ; -------------------------------------------------- ; Error messages ; -------------------------------------------------- MB_ERRTAB: DB 0x00 MB_ERROR_MSGS: DB "NEXT without FOR", 0 ; 0x01 DB "Syntax error", 0 ; 0x02 DB "RETURN without GOSUB", 0 ; 0x03 DB "Out of DATA", 0 ; 0x04 DB "Illegal function call", 0 ; 0x05 MB_OVRMSG: DB "Overflow", 0 ; 0x06 DB "Out of memory", 0 ; 0x07 DB "Undefined line number", 0 ; 0x08 DB "Subscript out of range", 0 ; 0x09 DB "Redimensioned array", 0 ; 0x0A MB_DBZ_MSG: DB "Division by zero", 0 ; 0x0B DB "Illegal direct", 0 ; 0x0C DB "Type mismatch", 0 ; 0x0D DB "Out of string space", 0 ; 0x0E DB "String too long", 0 ; 0x0F DB "String formula too complex", 0 ; 0x10 DB "Can't CONTINUE", 0 ; 0x11 DB "Undefined user function", 0 ; 0x12 DB "Device I/O error", 0 ; 0x13 DB "Verify error", 0 ; 0x14 DB "No RESUME", 0 ; 0x15 DB "RESUME without error", 0 ; 0x16 DB "Unprintable error", 0 ; 0x17 DB "Missing operand", 0 ; 0x18 DB "Line buffer overflow", 0 ; 0x19 DB "FIELD overflow", 0 ; 0x1A DB "Internal error", 0 ; 0x1B DB "Bad file number", 0 ; 0x1C DB "File not found", 0 ; 0x1D DB "File already open", 0 ; 0x1E DB "Input past end", 0 ; 0x1F DB "Bad file name", 0 ; 0x20 DB "Direct statement in file", 0 ; 0x21 DB "Sequential I/O only", 0 ; 0x22 DB "File not OPEN", 0 ; 0x23 ; -------------------------------------------------- ; Error codes ; -------------------------------------------------- ERRNF EQU 0x01 ; 1 ERRSN EQU 0x02 ; 2 ERRRG EQU 0x03 ; 3 ERROD EQU 0x04 ; 4 ERRFC EQU 0x05 ; 5 Illegal function call ERROV EQU 0x06 ; 6 ERROM EQU 0x07 ; 7 Out of memory ERRULN EQU 0x08 ; 8 Undefined line number ERRBS EQU 0x09 ; 9 ERRDD EQU 0x0a ; 10 ERRDV0 EQU 0x0b ; 11 ERRID EQU 0x0c ; 12 ERRTM EQU 0x0d ; 13 ERRSO EQU 0x0e ; Out of space ERRLS EQU 0x0f ; 15 ERRST EQU 0x10 ; String formula too complex ERRCN EQU 0x11 ; 17 ERRUF EQU 0x12 ; Undefined user function ERRDIO EQU 0x13 ; 19 Device IO error ERRVE EQU 0x14 ; 20 Verify error ERRNR EQU 0x15 ; 21 No resume ERRRWE EQU 0x16 ; 22 Resume wo error ERRUE EQU 0x17 ; 23 Unprintable error ERRMO EQU 0x18 ; 24 Missing operand ERRLBO EQU 0x19 ; 25 Line buff over NONDSK EQU 0x1C DSKERR EQU 0x31 ERRFO EQU 0x32 ; 26 Field overflow ERRIE EQU 0x33 ; 27 Internal error ERRBFN EQU 0x34 ; 28 Bad File Number ERRFNF EQU 0x35 ; 29 File Not Found ERRFAO EQU 0x36 ; 30 File Already open ERRIPE EQU 0x37 ; 31 Inp past end ERRBN EQU 0x38 ; 32 Bad file Name ERRDSF EQU 0x39 ; 33 Direct stmt in file ERRSIO EQU 0x3A ; 34 Sequential I/O only ERRFNO EQU 0x3B ; 35 File not open LSTERR EQU 0x3C KBFLEN EQU 0x13E ; 318