fix build under newer KConfig by bump cmake min version

This commit is contained in:
2024-09-04 19:01:58 +08:00
parent 727a2ec214
commit 9fb3681e3a
1022 changed files with 4414 additions and 1375 deletions

View File

@ -0,0 +1,74 @@
% Demonstrate each possible style. Does not make sense as code.
% A comment 1
% Comment
% Whitespace 0
% Label 2
label
% Not Validated Opcode 3 appears to always validate to either 5 or 6
% so is never seen on screen.
% Division between Label and Opcode 4
la
% Valid Opcode 5
TRAP
% Invalid Opcode 6
UNKNOWN
% Division between Opcode and Operands 7
LOC
% Division of Operands 8
LOC 0.
% Number 9
BYTE 0
% Reference 10
JMP @label
% Char 11
BYTE 'a'
% String 12
BYTE "Hello, world!"
% Register 13
BYTE rA
% Hexadecimal Number 14
BYTE #FF
% Operator 15
BYTE +
% Symbol 16
TRAP Fputs
% Preprocessor 17
@include a.mms

View File

@ -0,0 +1,75 @@
0 400 0 % Demonstrate each possible style. Does not make sense as code.
0 400 0
0 400 0 % A comment 1
0 400 0 % Comment
0 400 0
0 400 0
0 400 0 % Whitespace 0
0 400 0
0 400 0
0 400 0
0 400 0 % Label 2
0 400 0 label
0 400 0
0 400 0
0 400 0 % Not Validated Opcode 3 appears to always validate to either 5 or 6
0 400 0 % so is never seen on screen.
0 400 0
0 400 0
0 400 0 % Division between Label and Opcode 4
0 400 0 la
0 400 0
0 400 0
0 400 0 % Valid Opcode 5
0 400 0 TRAP
0 400 0
0 400 0
0 400 0 % Invalid Opcode 6
0 400 0 UNKNOWN
0 400 0
0 400 0
0 400 0 % Division between Opcode and Operands 7
0 400 0 LOC
0 400 0
0 400 0
0 400 0 % Division of Operands 8
0 400 0 LOC 0.
0 400 0
0 400 0
0 400 0 % Number 9
0 400 0 BYTE 0
0 400 0
0 400 0
0 400 0 % Reference 10
0 400 0 JMP @label
0 400 0
0 400 0
0 400 0 % Char 11
0 400 0 BYTE 'a'
0 400 0
0 400 0
0 400 0 % String 12
0 400 0 BYTE "Hello, world!"
0 400 0
0 400 0
0 400 0 % Register 13
0 400 0 BYTE rA
0 400 0
0 400 0
0 400 0 % Hexadecimal Number 14
0 400 0 BYTE #FF
0 400 0
0 400 0
0 400 0 % Operator 15
0 400 0 BYTE +
0 400 0
0 400 0
0 400 0 % Symbol 16
0 400 0 TRAP Fputs
0 400 0
0 400 0
0 400 0 % Preprocessor 17
0 400 0 @include a.mms
0 400 0
0 400 0
0 400 0

View File

@ -0,0 +1,74 @@
{1}% Demonstrate each possible style. Does not make sense as code.
{0}
{1}% A comment 1
% Comment
{0}
{1}% Whitespace 0
{0}
{1}% Label 2
{2}label{4}
{0}
{1}% Not Validated Opcode 3 appears to always validate to either 5 or 6
% so is never seen on screen.
{0}
{1}% Division between Label and Opcode 4
{2}la{4}
{0}
{1}% Valid Opcode 5
{0} {5}TRAP{7}
{0}
{1}% Invalid Opcode 6
{0} {6}UNKNOWN{7}
{0}
{1}% Division between Opcode and Operands 7
{0} {5}LOC{7}
{0}
{1}% Division of Operands 8
{0} {5}LOC{7} {9}0{8}.{1}
{0}
{1}% Number 9
{0} {5}BYTE{7} {9}0{1}
{0}
{1}% Reference 10
{0} {5}JMP{7} {10}@label{1}
{0}
{1}% Char 11
{0} {5}BYTE{7} {11}'a'{1}
{0}
{1}% String 12
{0} {5}BYTE{7} {12}"Hello, world!"{1}
{0}
{1}% Register 13
{0} {5}BYTE{7} {13}rA{1}
{0}
{1}% Hexadecimal Number 14
{0} {5}BYTE{7} {14}#FF{1}
{0}
{1}% Operator 15
{0} {5}BYTE{7} {15}+{1}
{0}
{1}% Symbol 16
{0} {5}TRAP{7} {16}Fputs{1}
{0}
{1}% Preprocessor 17
{17}@include a.mms
{0}

View File

@ -0,0 +1,4 @@
lexer.*.mms=mmixal
keywords.*.mms=BYTE GETA JMP LOC PREFIX TRAP
keywords2.*.mms=rA
keywords3.*.mms=Fputs StdOut

View File

@ -0,0 +1,16 @@
# Bug #2019 Buffer over-read in MMIXAL lexer
label
PREFIX Foo:
% Relative reference (uses PREFIX)
JMP label
%
JMP @label
% Absolute reference (does not use PREFIX)
JMP :label
% In register list so treated as register
JMP :rA
% Too long for buffer so truncated
JMP l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
% Too long for buffer so truncated then treated as absolute
JMP :l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
%

View File

@ -0,0 +1,17 @@
0 400 0 # Bug #2019 Buffer over-read in MMIXAL lexer
0 400 0 label
0 400 0 PREFIX Foo:
0 400 0 % Relative reference (uses PREFIX)
0 400 0 JMP label
0 400 0 %
0 400 0 JMP @label
0 400 0 % Absolute reference (does not use PREFIX)
0 400 0 JMP :label
0 400 0 % In register list so treated as register
0 400 0 JMP :rA
0 400 0 % Too long for buffer so truncated
0 400 0 JMP l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
0 400 0 % Too long for buffer so truncated then treated as absolute
0 400 0 JMP :l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
0 400 0 %
0 400 0

View File

@ -0,0 +1,16 @@
{1}# Bug #2019 Buffer over-read in MMIXAL lexer
{2}label{4}
{0} {5}PREFIX{7} {10}Foo:{1}
% Relative reference (uses PREFIX)
{0} {5}JMP{7} {10}label{1}
%
{0} {5}JMP{7} {10}@label{1}
% Absolute reference (does not use PREFIX)
{0} {5}JMP{7} {10}:label{1}
% In register list so treated as register
{0} {5}JMP{7} {13}:rA{1}
% Too long for buffer so truncated
{0} {5}JMP{7} {10}l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890{1}
% Too long for buffer so truncated then treated as absolute
{0} {5}JMP{7} {10}:l1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890{1}
%

View File

@ -0,0 +1,12 @@
% Some example code
% Set the address of the program initially to 0x100.
LOC #100
Main GETA $255,string
TRAP 0,Fputs,StdOut
TRAP 0,Halt,0
string BYTE "Hello, world!",#a,0

View File

@ -0,0 +1,13 @@
0 400 0 % Some example code
0 400 0
0 400 0 % Set the address of the program initially to 0x100.
0 400 0 LOC #100
0 400 0
0 400 0 Main GETA $255,string
0 400 0
0 400 0 TRAP 0,Fputs,StdOut
0 400 0
0 400 0 TRAP 0,Halt,0
0 400 0
0 400 0 string BYTE "Hello, world!",#a,0
0 400 0

View File

@ -0,0 +1,12 @@
{1}% Some example code
{0}
{1}% Set the address of the program initially to 0x100.
{0} {5}LOC{7} {14}#100{1}
{0}
{2}Main{4} {5}GETA{7} {13}$255{15},{10}string{1}
{0}
{5}TRAP{7} {9}0{15},{16}Fputs{15},{16}StdOut{1}
{0}
{5}TRAP{7} {9}0{15},{10}Halt{15},{9}0{1}
{0}
{2}string{4} {5}BYTE{7} {12}"Hello, world!"{15},{14}#a{15},{9}0{1}