📄 jsglobal_c.cpp
字号:
{ static char s[] = "0000";
s[3] = v2char(val);
s[2] = v2char(val>>=4);
s[1] = v2char(val>>=4);
s[0] = v2char(val>>=4);
return s;
} // end Int16uToJString
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
const char* const ErrWarnMsg::warnmsg[] =
{ "Programmer: JamesyFront.", // 0
"Data have been truncated to 8-bit.", // 1 DataBeTrun8Warn
"Data have been truncated to 16-bit.", // 2 DataBeTrun16Warn
"File needs END to finish.", // 3 FileNeedEndWarn
"Data have been extended to 16-bit.", // 4 DataBeExtentWarn
"Data have been truncated to 11-bit.", // 5 DataBeTrun11Warn
"Label name has been truncated to 40 char.", // 6 LBLTooLongWarn
"Label type not match.", // 7 LBLTypNotMatchWarn
"Label segment not match.", // 8 LBLSegNotMatchWarn
"Excessive parameters in Macro calling. Be ignored.", // 9 ExcesParaMroWarn
"Insufficient parameter in Macro calling. Filled with NUL.", // 10 InsufParaMroWarn
"Data type are regarded as number here.", // 11 DataTakeAsNUMWarn
"Negative data are regarded as their complement.", // 12 NegTakeAsCplxWarn
"Missing title apointment.", // 13 MissTitleWarn
"Missing date apointment.", // 14 MissDateWarn
"Number out of range. Setting by default.", // 15 NumOutRangeWarn
"Cannot restore without saveing first.", // 16 RsStkRstorWarn
"Be cautious that the type of the result is not number.", // 17 IFexprWarn
"Negative number will be convented to positive number.", // 18 NegContPosWarn
"" // 19
};
//---------------------------------------------------------------------------
const char* const ErrWarnMsg::errmsg[] =
{ "This software was made by zzf.", // No error 0
"Errors in somewhere.", // 1
"Errors in another place.", // 2
"Undefined label or variable.", // LabelUnDefErr 3
"Missing label defination before ':'.", // LabelDefNullErr 4
"Missing variable name defination.", // VarDefNullErr 5
"Name of parameter error.", // ParaNameDefErr 6
"Undefined word.", // UndefWordErr 7
"Missing identifier definition of EQU.", // EQUDefNullErr 8
"Missing identifier definition of SET.", // SETDefNullErr 9
"Missing identifier definition of BIT.", // BITDefNullErr 10
"Unidentified word here. Cannot find this macro.", // InstNeededErr 11
"Insufficient arguments.", // ArguInsufErr 12
"Excessive arguments or illegal symbol.", // ArguExcevErr 13
"Expression in NULL.", // ExpNULLErr 14
"Expression missing ')'.", // MissRtErr 15
"Expression missing '('.", // MissLtErr 16
"Expression illegal syntax.", // ExpSyrErr 17
"Expression element incompleted.", // MissEleErr 18
"Excessive symbol ','.", // ExcesComErr 19
"Missing symbol ',' between expressions.", // ExpExcessErr 20
"Missing symbol ',' between operands.", // OPadExcessErr 21
"Identifier name duplicated.", // LblNameDuplcate 22
"Identifier type not match.", // LbltypeNotmatch 23
"Data Exceeding length.", // DataExceedErr 24
"Divide by Zero.", // DividerIsZeroErr 25
"Bit address out of range.", // BitAddrOutRangeErr 26
"Shifting data out of range.", // ShiftOutRangeErr 27
"Expression nest out of range.", // ExpNestOuterErr 28
"Illegal register expression.", // RegisterInExpErr 29
"Identifier missing declaration.", // UndefLabelErr 30
"Location address out of range.", // LocAddrOutRangeErr 31
"Label value is not ready yet.", // LabelNotReadyErr 32
"The first Operand is incorrect, type not match.", // WrongOperandsErr 33
"The second Operand is incorrect, type not match.", // 34
"The third Operand is incorrect, type not match.", // 35
"Address mode not match, instruction syntax error.", // InstrctSyntaxErr 36
"ORG address error.", // ORGdataCalErr 37
"Relative address range exceeded.", // RelativeAddrErr 38
"Operand illegal syntax.", // OPNDsyntaxErr 39
"Missing expression definition of CODE.", // CODEDefNullErr 40
"Missing expression definition of DATA.", // DATADefNullErr 41
"Missing expression definition of XDATA.", // XDATADefNullErr 42
"Missing expression definition of IDATA.", // IDATADefNullErr 43
"8-bits data address out of range.", // DATAOutRangeErr 44
"ORG address must not less than the segment base.", // ORGdataLessErr 45
"Bad relocatable expression.", // BadRelExpErr 46
"Illegal type operation in expression.", // IllTypExpErr 47
"Operand expression type not match.", // ExpTypNotMatchErr 48
"Refer segment not match.", // SegNotMatchErr 49
"Register expression out of range.", // REGOutRangeErr 50
"Missing identifier definition of segment.", // SEGDefNullErr 51
"Misplace segment relocatable type.", // SegRelDefErr 52
"Number defination error.", // NumberDefErr 53
"The first character of identifier cannot be digit.", // BadNumberErr 54
"Segment Name has not been defined yet.", // RSegNameErr 55
"Address must be absolute.", // NotAbsAddrErr 56
"Stack overflow, expression nest too deep.", // StkOverFlowErr 57
"Missing identifier definition of MACRO.", // MacroDefNullErr 58
"Can not find a match Macro for ENDM.", // ENDMNotMatchErr 59
"Macro named duplicately.", // MacroDuplicateErr 60
"Formal parameters named duplicately.", // MacroArgvDupErr 61
"Misplaced LOCAL. It must be placed in a Macro-body.",// MacroLocalErr 62
"Misplaced EXITM. It must be placed in a Macro-body.",// MacroExitmErr 63
"Missing identifier name after LOCAL.", // MissLocalIDErr 64
"Illegal labels before Macro defination.", // IllLBforMroErr 65
"String length beyond the limit in macro.", // LenExcesMroErr 66
"Lex errors occured in macro expanding.", // MacroLexErr 67
"Macro defination nested too deep.", // MroDefNestOutErr 68
"Macro calling nested too deep.", // MroCallNestOutErr 69
"Label is not allowed here.", // LabelNotAllowErr 70
"REPT cannot accept bad expression.", // BadExptReptErr 71
"Non-relocated data expected here.", // ExpeABSdataErr 72
"Negative data are not allowed here.", // NegDatNotAllowErr 73
"LOCAL should not be here.", // LocaltNotAllowErr 74
"Registerbank out of range. USING 0 ~ 3.", // UsingWrongErr 75
"Missing formal argument here.", // MissFomArguErr 76
"Missing parameters here.", // MissParasErr 77
"'<' expected here.", // ParaMissLtErr 78
"'>' expected here.", // ParaMissRtErr 79
"A <list> expected here, use '<' & '>' please.", // ParaMissLRtErr 80
"Illegal assemble control instruction here.", // DogCtrlIllErr 81
"Control instruction should not be defined twice.", // CtrlConflictErr 82
"Cannot open the specified file.", // spFileOpenErr 83
"IF ELSE statements nest too deep.", // IfElseNestOutErr 84
"Misplaced ENDIF, without corresponding IF.", // ENDIFMisplaceErr 85
"Missing ENDIF which corresponds IF.", // MissingENDIFErr 86
"IF expression error.", // IFexprErr 87
"Misplaced ELSE, without corresponding IF.", // ELSEMisplaceErr 88
"Misplaced ELSEIF, without corresponding IF.", // ESIFMisplaceErr 89
"Only one instruction should be in one line.", // ExcvPswWordErr 90
"Operator '.' is not allowed here.", // ComNotAllowErr 91
"Bad operator in the expression here.", // BadOPinExprErr 92
"NUL must immediately follow IF.", // NULnotFloIFErr 93
"Missing terminal symbol \'.", // SingleQuoteErr 94
"Missing terminal symbol \".", // DoubleQuoteErr 95
"Unknown definition?", // UnkPWordErr 96
"OutputErr out of run!"
}; // end errmsg
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// end JsGlobal_C.cpp
//---------------------------------------------------------------------------
// Written by JamesyFront. ZLGmcu Dev.Co.Ltd. 2002.
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -