Subversion Repositories NedoOS

Rev

Rev 126 | Rev 539 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

# file opened: KateSyntaxHighLightTest.asm
 1    0000              ;; This is not test of sjasmplus itself, but this is used to check Kate-syntax-highlight
 2    0000              ;; The syntax highlight rules are in "asm-z80-sj.xml" file in the project root directory
 3    0000
 4    0000                  device zxspectrum48     ; directive of sjasmplus
KateSyntaxHighLightTest.asm(5): error: [ORG] Page number must be in range 0..3
KateSyntaxHighLightTest.asm(5): error: Unexpected: , #A8  
 5    0000                  org     $A8, 0xA8, #A8  ; hexa, also: 0A8h
KateSyntaxHighLightTest.asm(6): error: Unexpected: , 43008d   
 6    00A8                  disp    43008, 43008d   ; decimal
KateSyntaxHighLightTest.asm(7): error: Unrecognized instruction: relaxed syntax of Z80 assemblers, "label" is usually default result of anything
 7    A800              With relaxed syntax of Z80 assemblers, "label" is usually default result of anything
 8    A800
 9    A800 21 9C 00 11      ld      hl, %10011100, de, 0b10011100   ; binary, also: 0011b
 9    A804 9C 00
10    A806 11 FF 0F 01      ld      de, 7777o, bc, 0q7777           ; octal, also: 77q
10    A80A FF 0F
11    A80C 01 F0 00         ld      bc, %1111'0000  ; C++ num-group separator
12    A80F 61 70 6F 73      db      'apostrophe''s "text"', "quotes\'\\\"\? 'text'", 0
12    A813 74 72 6F 70
12    A817 68 65 27 73
12    A81B 20 22 74 65
12    A81F 78 74 22 71
12    A823 75 6F 74 65
12    A827 73 27 5C 22
12    A82B 3F 20 27 74
12    A82F 65 78 74 27
12    A833 00
KateSyntaxHighLightTest.asm(13): error: Unrecognized instruction: ldirx
13    A834                  ldirx
KateSyntaxHighLightTest.asm(14): error: Unrecognized instruction: bsra    de,b            
14    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 label
17    A836              // also C line comments supported
18    A836 FC 36 A8         call    s, s            ; conditional call/jp/jr/ret highlights also condition
19    A839                      ; "s" is actually unofficial alias for "m" supported by some assembler ("ns"=p)
20    A839 C0               ret     nz              ; control-flow instructions are extra colour
21    A83A DD CB 80 03      rlc     (ix-128),e      ; unofficial Z80 instructions are highlighted extra
22    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 instruction
24    A846
25    A846 E6 0D            and     7+(3<<1)
26    A848 E6 4C            and     low .localLab   ; FIXME: operators are mostly defined, but rules are missing
27    A84A
28    A84A                  MACRO leMacron _arg0?
29    A84A ~                    defb    $DD, 1
30    A84A ~                    nextreg $15, $0
31    A84A                  ENDM
32    A84A
33    A84A                  ; in case you accidentally write non-instruction, it will highlight as label! :D
KateSyntaxHighLightTest.asm(34): error: Unrecognized instruction: jnz     s               
34    A84A                  jnz     s               ; still makes it easier to catch
35    A84A                  leMacron arg0           ; but so do also correctly used macros
35    A84A DD 01       >        defb    $DD, 1
KateSyntaxHighLightTest.asm(35): error: Unrecognized instruction: nextreg $15, $0
35    A84C             >        nextreg $15, $0
36    A84C              .localLab:
KateSyntaxHighLightTest.asm(37): error: Missing next digit: 1   
37    A84C                  hex     F32712bcd3561   ; unpaired digit or non-digit is highlighted as "error"
KateSyntaxHighLightTest.asm(38): error: Invalid labelname: !alsoThisInvalidLabel
38    A84C              !alsoThisInvalidLabel
KateSyntaxHighLightTest.asm(39): warning: [DG] multiple characters used for 'ones'
KateSyntaxHighLightTest.asm(39): warning: [DG] character '0' in DG works as value 1
39    A84C 33 F8            dg      ..##..##  #$01!-._  ; DG bit map is highlights as "data" (0) vs "number" (1)
40    A84E
# file closed: KateSyntaxHighLightTest.asm

Value    Label
------ - -----------------------------------------------------------
0xA800 X With
0xA836   s
0xA84C   s.localLab