You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. <!doctype html>
  2. <title>CodeMirror: Z80 assembly mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="z80.js"></script>
  8. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  9. <div id=nav>
  10. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  11. <ul>
  12. <li><a href="../../index.html">Home</a>
  13. <li><a href="../../doc/manual.html">Manual</a>
  14. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  15. </ul>
  16. <ul>
  17. <li><a href="../index.html">Language modes</a>
  18. <li><a class=active href="#">Z80 assembly</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>Z80 assembly mode</h2>
  23. <div><textarea id="code" name="code">
  24. #include "ti83plus.inc"
  25. #define progStart $9D95
  26. .org progStart-2
  27. .db $BB,$6D
  28. bcall(_ClrLCDFull)
  29. ld hl,0
  30. ld (CurCol),hl
  31. ld hl,Message
  32. bcall(_PutS) ; Displays the string
  33. bcall(_NewLine)
  34. ret
  35. Message:
  36. .db "Hello world!",0
  37. </textarea></div>
  38. <script>
  39. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  40. lineNumbers: true
  41. });
  42. </script>
  43. <p><strong>MIME types defined:</strong> <code>text/x-z80</code>, <code>text/x-ez80</code>.</p>
  44. </article>