A tumblelog CMS built on AJAX, PHP and MySQL.

z80.php 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. /*************************************************************************************
  3. * z80.php
  4. * -------
  5. * Author: Benny Baumann (BenBE@omorphia.de)
  6. * Copyright: (c) 2007-2008 Benny Baumann (http://www.omorphia.de/), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.7.21
  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. $language_data = array (
  44. 'LANG_NAME' => 'ZiLOG Z80 Assembler',
  45. 'COMMENT_SINGLE' => array(1 => ';'),
  46. 'COMMENT_MULTI' => array(),
  47. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  48. 'QUOTEMARKS' => array("'", '"'),
  49. 'ESCAPE_CHAR' => '',
  50. 'KEYWORDS' => array(
  51. /*CPU*/
  52. 1 => array(
  53. 'adc','add','and','bit','call','ccf','cp','cpd','cpdr','cpir','cpi',
  54. 'cpl','daa','dec','di','djnz','ei','ex','exx','halt','im','in',
  55. 'in0','inc','ind','indr','inir','ini','jp','jr','ld','ldd','lddr',
  56. 'ldir','ldi','mlt','neg','nop','or','otdm','otdmr','otdr','otim',
  57. 'otimr','otir','out','out0','outd','outi','pop','push','res','ret',
  58. 'reti','retn','rl','rla','rlc','rlca','rld','rr','rra','rrc','rrca',
  59. 'rrd','rst','sbc','scf','set','sla','sl1','sll','slp','sra','srl',
  60. 'sub','tst','tstio','xor'
  61. ),
  62. /*registers*/
  63. 2 => array(
  64. 'a','b','c','d','e','h','l',
  65. 'af','bc','de','hl','ix','iy','sp',
  66. 'af\'','ixh','ixl','iyh','iyl'
  67. ),
  68. /*Directive*/
  69. 3 => array(
  70. '#define','#endif','#else','#ifdef','#ifndef','#include','#undef',
  71. '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ'
  72. ),
  73. ),
  74. 'SYMBOLS' => array(
  75. '[', ']', '(', ')', '?', '+', '-', '*', '/', '%', '$'
  76. ),
  77. 'CASE_SENSITIVE' => array(
  78. GESHI_COMMENTS => true,
  79. 1 => false,
  80. 2 => false,
  81. 3 => false,
  82. ),
  83. 'STYLES' => array(
  84. 'KEYWORDS' => array(
  85. 1 => 'color: #0000ff; font-weight:bold;',
  86. 2 => 'color: #0000ff;',
  87. 3 => 'color: #46aa03; font-weight:bold;'
  88. ),
  89. 'COMMENTS' => array(
  90. 1 => 'color: #adadad; font-style: italic;',
  91. ),
  92. 'ESCAPE_CHAR' => array(
  93. 0 => 'color: #000099; font-weight: bold;'
  94. ),
  95. 'BRACKETS' => array(
  96. 0 => 'color: #0000ff;'
  97. ),
  98. 'STRINGS' => array(
  99. 0 => 'color: #7f007f;'
  100. ),
  101. 'NUMBERS' => array(
  102. 0 => 'color: #dd22dd;'
  103. ),
  104. 'METHODS' => array(
  105. ),
  106. 'SYMBOLS' => array(
  107. 0 => 'color: #008000;'
  108. ),
  109. 'REGEXPS' => array(
  110. 0 => 'color: #22bbff;',
  111. 1 => 'color: #22bbff;',
  112. 2 => 'color: #993333;'
  113. ),
  114. 'SCRIPT' => array(
  115. )
  116. ),
  117. 'URLS' => array(
  118. ),
  119. 'OOLANG' => false,
  120. 'OBJECT_SPLITTERS' => array(
  121. ),
  122. 'REGEXPS' => array(
  123. 0 => '0[0-9a-fA-F]{1,32}[hH]',
  124. 1 => '\%[01]{1,64}[bB]',
  125. 2 => '^[_a-zA-Z][_a-zA-Z0-9]{0,50}\:'
  126. ),
  127. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  128. 'SCRIPT_DELIMITERS' => array(
  129. ),
  130. 'HIGHLIGHT_STRICT_BLOCK' => array(
  131. ),
  132. 'TAB_WIDTH' => 8
  133. );
  134. ?>