Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: KateSyntaxHighLightTest.asm1 0000 ;; This is not test of sjasmplus itself, but this is used to check Kate-syntax-highlight2 0000 ;; The syntax highlight rules are in "asm-z80-sj.xml" file in the project root directory3 00004 0000 device zxspectrum48 ; directive of sjasmplusKateSyntaxHighLightTest.asm(5): warning[orgpage]: [ORG] page argument affects current slot while address is outside: address 0x00A8 vs slot 3 range 0xC000..0xFFFFKateSyntaxHighLightTest.asm(5): error: [ORG] Page number must be in range 0..3: 168KateSyntaxHighLightTest.asm(5): error: Unexpected: , #A85 0000 org $A8, 0xA8, #A8 ; hexa, also: 0A8hKateSyntaxHighLightTest.asm(6): error: [DISP] <page number> is out of range: 430086 00A8 disp 43008, 43008d ; decimalKateSyntaxHighLightTest.asm(7): error: Unrecognized instruction: relaxed syntax of Z80 assemblers, "label" is usually default result of anything7 00A8 With relaxed syntax of Z80 assemblers, "label" is usually default result of anything8 00A89 00A8 21 9C 00 11 ld hl, %10011100, de, 0b10011100 ; binary, also: 0011b9 00AC 9C 0010 00AE 11 FF 0F 01 ld de, 7777o, bc, 0q7777 ; octal, also: 77q10 00B2 FF 0F11 00B4 01 F0 00 ld bc, %1111'0000 ; C++ num-group separator12 00B7 61 70 6F 73 db 'apostrophe''s "text"', "quotes\'\\\"\? 'text'", 012 00BB 74 72 6F 7012 00BF 68 65 27 7312 00C3 20 22 74 6512 00C7 78 74 22 7112 00CB 75 6F 74 6512 00CF 73 27 5C 2212 00D3 3F 20 27 7412 00D7 65 78 74 2712 00DB 00KateSyntaxHighLightTest.asm(13): error: Unrecognized instruction: ldirx13 00DC ldirxKateSyntaxHighLightTest.asm(14): error: Unrecognized instruction: bsra de,b14 00DC bsra de,b ; NEXT opcodes of course added (can have different colour)15 00DC FE 27 cp '''' ;"TODO" in comments exists (also FIXME and FIX ME).16 00DE s: ; some label17 00DE // also C line comments supported18 00DE FC DE 00 call s, s ; conditional call/jp/jr/ret highlights also condition19 00E1 ; "s" is actually unofficial alias for "m" supported by some assembler ("ns"=p)20 00E1 C0 ret nz ; control-flow instructions are extra colour21 00E2 DD CB 80 03 rlc (ix-128),e ; unofficial Z80 instructions are highlighted extra22 00E6 DD CB 06 AF res 5,(ix+6),a ; (but it goes also over arguments, maybe shouldn't, TODO)23 00EA DD CB 1E AE res 5,(ix+30) ; compared to official instruction24 00EE25 00EE E6 0D and 7+(3<<1)26 00F0 E6 F4 and low .localLab ; FIXME: operators are mostly defined, but rules are missing27 00F228 00F2 MACRO leMacron _arg0?29 00F2 ~ defb $DD, 130 00F2 ~ nextreg $15, $031 00F2 ENDM32 00F233 00F2 ; in case you accidentally write non-instruction, it will highlight as label! :DKateSyntaxHighLightTest.asm(34): error: Unrecognized instruction: jnz s34 00F2 jnz s ; still makes it easier to catch35 00F2 leMacron arg0 ; but so do also correctly used macros35 00F2 DD 01 > defb $DD, 1KateSyntaxHighLightTest.asm(30): error: Unrecognized instruction: nextreg $15, $0KateSyntaxHighLightTest.asm(35): ^ emitted from here35 00F4 > nextreg $15, $036 00F4 .localLab:KateSyntaxHighLightTest.asm(37): error: Missing next digit: 137 00F4 hex F32712bcd3561 ; unpaired digit or non-digit is highlighted as "error"KateSyntaxHighLightTest.asm(38): error: Invalid labelname: !alsoThisInvalidLabel38 00F4 !!alsoThisInvalidLabelKateSyntaxHighLightTest.asm(39): warning: [DG] multiple characters used for 'ones'KateSyntaxHighLightTest.asm(39): warning: [DG] character '0' in DG works as value 139 00F4 33 F8 dg ..##..## #$01!-._ ; DG bit map is highlights as "data" (0) vs "number" (1)40 00F6# file closed: KateSyntaxHighLightTest.asmValue Label------ - -----------------------------------------------------------0x00DE s0x00F4 s.localLab0x00A8 X With