File geshi/geshi/z80.php

Last commit: Fri Nov 23 00:12:00 2007 +0100	dankert	Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.
1 <?php 2 /************************************************************************************* 3 * z80.php 4 * ------- 5 * Author: Benny Baumann (BenBE@omorphia.de) 6 * Copyright: (c) 2007 Benny Baumann (http://www.omorphia.de/), Nigel McNie (http://qbnz.com/highlighter) 7 * Release Version: 1.0.7.20 8 * Date Started: 2007/02/06 9 * 10 * ZiLOG Z80 Assembler language file for GeSHi. 11 * Syntax definition as commonly used with table assembler TASM32 12 * This file will contain some undocumented opcodes. 13 * 14 * CHANGES 15 * ------- 16 * 2007/06/03 (1.0.1) 17 * - Fixed two typos in the language file 18 * 2007/02/06 (1.0.0) 19 * - First Release 20 * 21 * TODO (updated 2007/02/06) 22 * ------------------------- 23 * 24 ************************************************************************************* 25 * 26 * This file is part of GeSHi. 27 * 28 * GeSHi is free software; you can redistribute it and/or modify 29 * it under the terms of the GNU General Public License as published by 30 * the Free Software Foundation; either version 2 of the License, or 31 * (at your option) any later version. 32 * 33 * GeSHi is distributed in the hope that it will be useful, 34 * but WITHOUT ANY WARRANTY; without even the implied warranty of 35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36 * GNU General Public License for more details. 37 * 38 * You should have received a copy of the GNU General Public License 39 * along with GeSHi; if not, write to the Free Software 40 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 41 * 42 ************************************************************************************/ 43 44 $language_data = array ( 45 'LANG_NAME' => 'ZiLOG Z80 Assembler', 46 'COMMENT_SINGLE' => array(1 => ';'), 47 'COMMENT_MULTI' => array(), 48 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 49 'QUOTEMARKS' => array("'", '"'), 50 'ESCAPE_CHAR' => '', 51 'KEYWORDS' => array( 52 /*CPU*/ 53 1 => array( 54 'adc','add','and','bit','call','ccf','cp','cpd','cpdr','cpir','cpi', 55 'cpl','daa','dec','di','djnz','ei','ex','exx','halt','im','in', 56 'in0','inc','ind','indr','inir','ini','jp','jr','ld','ldd','lddr', 57 'ldir','ldi','mlt','neg','nop','or','otdm','otdmr','otdr','otim', 58 'otimr','otir','out','out0','outd','outi','pop','push','res','ret', 59 'reti','retn','rl','rla','rlc','rlca','rld','rr','rra','rrc','rrca', 60 'rrd','rst','sbc','scf','set','sla','sl1','sll','slp','sra','srl', 61 'sub','tst','tstio','xor' 62 ), 63 /*registers*/ 64 2 => array( 65 'a','b','c','d','e','h','l', 66 'af','bc','de','hl','ix','iy','sp', 67 'af\'','ixh','ixl','iyh','iyl' 68 ), 69 /*Directive*/ 70 3 => array( 71 '#define','#endif','#else','#ifdef','#ifndef','#include','#undef', 72 '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ' 73 ), 74 ), 75 'SYMBOLS' => array( 76 '[', ']', '(', ')', '?', '+', '-', '*', '/', '%', '$' 77 ), 78 'CASE_SENSITIVE' => array( 79 GESHI_COMMENTS => true, 80 1 => false, 81 2 => false, 82 3 => false, 83 ), 84 'STYLES' => array( 85 'KEYWORDS' => array( 86 1 => 'color: #0000ff; font-weight:bold;', 87 2 => 'color: #0000ff;', 88 3 => 'color: #46aa03; font-weight:bold;' 89 ), 90 'COMMENTS' => array( 91 1 => 'color: #adadad; font-style: italic;', 92 ), 93 'ESCAPE_CHAR' => array( 94 0 => 'color: #000099; font-weight: bold;' 95 ), 96 'BRACKETS' => array( 97 0 => 'color: #0000ff;' 98 ), 99 'STRINGS' => array( 100 0 => 'color: #7f007f;' 101 ), 102 'NUMBERS' => array( 103 0 => 'color: #dd22dd;' 104 ), 105 'METHODS' => array( 106 ), 107 'SYMBOLS' => array( 108 0 => 'color: #008000;' 109 ), 110 'REGEXPS' => array( 111 0 => 'color: #22bbff;', 112 1 => 'color: #22bbff;', 113 2 => 'color: #993333;' 114 ), 115 'SCRIPT' => array( 116 ) 117 ), 118 'URLS' => array( 119 ), 120 'OOLANG' => false, 121 'OBJECT_SPLITTERS' => array( 122 ), 123 'REGEXPS' => array( 124 0 => '0[0-9a-fA-F]{1,32}[hH]', 125 1 => '\%[01]{1,64}[bB]', 126 2 => '^[_a-zA-Z][_a-zA-Z0-9]{0,50}\:' 127 ), 128 'STRICT_MODE_APPLIES' => GESHI_NEVER, 129 'SCRIPT_DELIMITERS' => array( 130 ), 131 'HIGHLIGHT_STRICT_BLOCK' => array( 132 ), 133 'TAB_WIDTH' => 8 134 ); 135 136 ?>
Download geshi/geshi/z80.php
History Fri, 23 Nov 2007 00:12:00 +0100 dankert Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.