home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / disasm / at86demo / demo.t86 < prev    next >
Text File  |  1985-11-15  |  1KB  |  80 lines

  1. pause 10
  2. cls
  3. f100 1000 ff
  4. db400
  5. This is a demo to show how various AT86 features work.          Type left arrow to slow down, right to speed up, Ctrl-S to pauseTo quit the demo, press the <Esc> key twice.
  6. new
  7. a100
  8. start: inc ax    ;Type labels and comments
  9. push ax
  10. next:    mov    di,123s    ;  Oops! A mistake.
  11.  123
  12. call    alpha    ;This is initially undefined
  13. pop ax
  14. loop start
  15. nop
  16. alpha:    inc dx    ;Now alpha is defined
  17.     ret
  18.  
  19. trace
  20.     u u u                 uuuuuuuuu    ? @ 
  21. delete next
  22. list
  23. 
  24. insert 101
  25. new:    mov    di,1234    ;This is inserted
  26.     push    di
  27.     pop    di
  28. 
  29. list
  30. 
  31. f100 1000 "abcdefg"
  32. da100
  33. ? 2322222888899999
  34. @@
  35. ?
  36. cls
  37. a??
  38. b?
  39. c?
  40. d?
  41. e?
  42. f?
  43. g?
  44. h?
  45. i?
  46. k?
  47. l?
  48. m?
  49. n?
  50. o?
  51. p?
  52. q?
  53. r?
  54. s?
  55. t?
  56. u?
  57. v?
  58. w?
  59. x?
  60. y?
  61. z?
  62. cls
  63. cpu
  64. pause 20
  65. dd;
  66. 2222    3
  67. db40;0
  68. 
  69. cls
  70. You have a built-in reverse Polish calculator!
  71. 123 456+
  72. ds ax+ 2*
  73. You also have a hex/decimal converter.
  74. 4000
  75. 
  76. 256.
  77. cls
  78. Now let's start over
  79. n<demo.t86
  80.