1
0

index.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CodeMirror: Z80 assembly mode</title>
  6. <link rel="stylesheet" href="../../lib/codemirror.css">
  7. <script src="../../lib/codemirror.js"></script>
  8. <script src="z80.js"></script>
  9. <link rel="stylesheet" href="../../doc/docs.css">
  10. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  11. </head>
  12. <body>
  13. <h1>CodeMirror: Z80 assembly mode</h1>
  14. <div><textarea id="code" name="code">
  15. #include "ti83plus.inc"
  16. #define progStart $9D95
  17. .org progStart-2
  18. .db $BB,$6D
  19. bcall(_ClrLCDFull)
  20. ld HL, 0
  21. ld (PenCol), HL
  22. ld HL, Message
  23. bcall(_PutS) ; Displays the string
  24. bcall(_NewLine)
  25. ret
  26. Message:
  27. .db "Hello world!",0
  28. </textarea></div>
  29. <script>
  30. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  31. lineNumbers: true
  32. });
  33. </script>
  34. <p><strong>MIME type defined:</strong> <code>text/x-z80</code>.</p>
  35. </body>
  36. </html>