Rev 126 | Rev 539 | Go to most recent revision | 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): error: [ORG] Page number must be in range 0..3KateSyntaxHighLightTest.asm(5): error: Unexpected: , #A85 0000 org $A8, 0xA8, #A8 ; hexa, also: 0A8hKateSyntaxHighLightTest.asm(6): error: Unexpected: , 43008d6 00A8 disp 43008, 43008d ; decimalKateSyntaxHighLightTest.asm(7): error: Unrecognized instruction: relaxed syntax of Z80 assemblers, "label" is usually default result of anything7 A800 With relaxed syntax of Z80 assemblers, "label" is usually default result of anything8 A8009 A800 21 9C 00 11 ld hl, %10011100, de, 0b10011100 ; binary, also: 0011b9 A804 9C 0010 A806 11 FF 0F 01 ld de, 7777o, bc, 0q7777 ; octal, also: 77q10 A80A FF 0F11 A80C 01 F0 00 ld bc, %1111'0000 ; C++ num-group separator12 A80F 61 70 6F 73 db 'apostrophe''s "text"', "quotes\'\\\"\? 'text'", 012 A813 74 72 6F 7012 A817 68 65 27 7312 A81B 20 22 74 6512 A81F 78 74 22 7112 A823 75 6F 74 6512 A827 73 27 5C 2212 A82B 3F 20 27 7412 A82F 65 78 74 2712 A833 00KateSyntaxHighLightTest.asm(13): error: Unrecognized instruction: ldirx13 A834 ldirxKateSyntaxHighLightTest.asm(14): error: Unrecognized instruction: bsra de,b14 A834 bsra de,b ; NEXT opcodes of course added (can have different colour)15 A834 FE 27 cp '''' ;"TODO" in comments exists (also FIXME and FIX ME).16 A836 s: ; some label17 A836 // also C line comments supported18 A836 FC 36 A8 call s, s ; conditional call/jp/jr/ret highlights also condition19 A839 ; "s" is actually unofficial alias for "m" supported by some assembler ("ns"=p)20 A839 C0 ret nz ; control-flow instructions are extra colour21 A83A DD CB 80 03 rlc (ix-128),e ; unofficial Z80 instructions are highlighted extra22 A83E DD CB 06 AF res 5,(ix+6),a ; (but it goes also over arguments, maybe shouldn't, TODO)23 A842 DD CB 1E AE res 5,(ix+30) ; compared to official instruction24 A84625 A846 E6 0D and 7+(3<<1)26 A848 E6 4C and low .localLab ; FIXME: operators are mostly defined, but rules are missing27 A84A28 A84A MACRO leMacron _arg0?29 A84A ~ defb $DD, 130 A84A ~ nextreg $15, $031 A84A ENDM32 A84A33 A84A ; in case you accidentally write non-instruction, it will highlight as label! :DKateSyntaxHighLightTest.asm(34): error: Unrecognized instruction: jnz s34 A84A jnz s ; still makes it easier to catch35 A84A leMacron arg0 ; but so do also correctly used macros35 A84A DD 01 > defb $DD, 1KateSyntaxHighLightTest.asm(35): error: Unrecognized instruction: nextreg $15, $035 A84C > nextreg $15, $036 A84C .localLab:KateSyntaxHighLightTest.asm(37): error: Missing next digit: 137 A84C hex F32712bcd3561 ; unpaired digit or non-digit is highlighted as "error"KateSyntaxHighLightTest.asm(38): error: Invalid labelname: !alsoThisInvalidLabel38 A84C !alsoThisInvalidLabelKateSyntaxHighLightTest.asm(39): warning: [DG] multiple characters used for 'ones'KateSyntaxHighLightTest.asm(39): warning: [DG] character '0' in DG works as value 139 A84C 33 F8 dg ..##..## #$01!-._ ; DG bit map is highlights as "data" (0) vs "number" (1)40 A84E# file closed: KateSyntaxHighLightTest.asmValue Label------ - -----------------------------------------------------------0xA800 X With0xA836 s0xA84C s.localLab