Display_Speed.asm

  • user warning: Can't open file: 'cache.MYI' (errno: 145) query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'schema' in /var/www/vhosts/mattalltech.com/httpdocs/includes/cache.inc on line 26.
  • user warning: Can't open file: 'cache.MYI' (errno: 145) query: UPDATE cache SET data = 'a:50:{s:6:\"blocks\";a:7:{s:11:\"description\";s:62:\"Stores block settings, such as region and visibility settings.\";s:6:\"fields\";a:13:{s:3:\"bid\";a:3:{s:4:\"type\";s:6:\"serial\";s:8:\"not null\";b:1;s:11:\"description\";s:29:\"Primary Key: Unique block ID.\";}s:6:\"module\";a:5:{s:4:\"type\";s:7:\"varchar\";s:6:\"length\";i:64;s:8:\"not null\";b:1;s:7:\"default\";s:0:\"\";s:11:\"description\";s:126:\"The module from which the block originates; for example, \'user\' for the Who\'s Online block, and \'block\' for any custom blocks.\";}s:5:\"delta\";a:5:{s:4:\"type\";s:7:\"varchar\";s:6:\"length\";i:32;s:8:\"not null\";b:1;s:7:\"default\";s:1 in /var/www/vhosts/mattalltech.com/httpdocs/includes/cache.inc on line 109.
  • user warning: Can't open file: 'cache.MYI' (errno: 145) query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'theme_registry:mattalltech' in /var/www/vhosts/mattalltech.com/httpdocs/includes/cache.inc on line 26.
  • user warning: Can't open file: 'cache.MYI' (errno: 145) query: UPDATE cache SET data = 'a:127:{s:24:\"block_admin_display_form\";a:7:{s:8:\"template\";s:38:\"modules/block/block-admin-display-form\";s:4:\"file\";s:29:\"modules/block/block.admin.inc\";s:9:\"arguments\";a:1:{s:4:\"form\";N;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:13:\"modules/block\";s:11:\"theme paths\";a:1:{i:0;s:13:\"modules/block\";}s:20:\"preprocess functions\";a:2:{i:0;s:19:\"template_preprocess\";i:1;s:44:\"template_preprocess_block_admin_display_form\";}}s:17:\"color_scheme_form\";a:6:{s:9:\"arguments\";a:1:{s:4:\"form\";N;}s:4:\"type\";s:6:\"module\";s:10:\"theme path\";s:13:\"modules/color\";s:8:\"function\";s:23:\"theme_color_scheme_form\";s:11:\"theme paths\";a in /var/www/vhosts/mattalltech.com/httpdocs/includes/cache.inc on line 109.
  1. *************************************************************************
  2. * Program to demonstrate multiplex Speed on theDragon 12 Eval Board *
  3. * A multiplexed 7 Segment Display is connected to PORT B *
  4. * The individual Digits are controlled (neg.logic) by Pins Port P0...P3 *
  5. * Written for Dragon 12 Eval Board *
  6. * Written for MiniIde Assembler, Sep. 22, 2008, by M. Giesselmann *
  7. *************************************************************************
  8.  
  9. ***************************
  10. * 68HC12 Register Equates *
  11. ***************************
  12. PORTB EQU $0001 ;Port B I/O Data Register
  13. DDRB EQU $0003 ;Port B Data Direction Register
  14. PTP EQU $0258 ;Port P I/O Data Register
  15. DDRP EQU $025A ;Port P Data Direction Register
  16.  
  17. ************************************
  18. * Start (ORIGIN) of Code in Memory *
  19. ************************************
  20. ORG $1000 ;Origin=Bottom of User RAM
  21.  
  22. Init: BSET DDRB, $FF ;Make all Bits of Port B Outputs
  23. BCLR PORTB, $FF ;Clear all Bits of Port B;turn all Segments off
  24. BSET DDRP, $0F ;Make lower 4 bits of Port P Outputs
  25.  
  26. LDX #SegCde ;Load start of Code Lookup table into X
  27. Slow: MOVW #800,DELAY ;Initialize Delay count
  28.  
  29. Start: BSET PTP, $0F ;Turn all Digits off
  30. BCLR PTP, $01 ;Turn Digit 4 ON
  31. MOVB 1,X, PORTB ;Display "1" on multiplexed 7 Segment Display
  32.  
  33. BSR TimDel ;Branch to Time Delay Subroutine, rel. adressing
  34.  
  35. BSET PTP, $0F ;Turn all Digits off
  36. BCLR PTP, $02 ;Turn Digit 3 ON
  37. MOVB 2,X, PORTB ;Display "2" on multiplexed 7 Segment Display
  38.  
  39. BSR TimDel ;Branch to Time Delay Subroutine, rel. adressing
  40.  
  41. BSET PTP, $0F ;Turn all Digits off
  42. BCLR PTP, $04 ;Turn Digit 2 ON
  43. MOVB 3,X, PORTB ;Display "3" on multiplexed 7 Segment Display
  44.  
  45. BSR TimDel ;Branch to Time Delay Subroutine, rel. adressing
  46.  
  47. BSET PTP, $0F ;Turn all Digits off
  48. BCLR PTP, $08 ;Turn Digit 1 ON
  49. MOVB 4,X, PORTB ;Display "4" on multiplexed 7 Segment Display
  50.  
  51. BSR TimDel ;Branch to Time Delay Subroutine, rel. adressing
  52.  
  53. LDD DELAY ;Load Double Accu with DELAY Value
  54. SUBD #$0004 ;Subtract $0004 from Double Accu
  55. STD DELAY ;Store Double Accu back at DELAY
  56. CPD #$0040 ;Compare Result with $0040
  57. BHS Start ;Start back at the Beginning if Higher or Same
  58. BRA Slow ;Re-Initialize DELAY
  59.  
  60. *******************************************
  61. * Time Delay Subroutine with nested Loops *
  62. *******************************************
  63. TimDel: PSHX ;Push X onto Stack
  64. PSHY ;Push Y onto Stack
  65. LDY DELAY ;Load Y Register with DELAY
  66. LoopX: LDX DELAY ;Load X Register with DELAY
  67. DecX: DEX ;Decrement X Register
  68. BNE DecX ;Branch if DELAY limit has not been reached
  69. DEY ;Decrement Y Register
  70. BNE LoopX ;Branch if DELAY limit has not been reached
  71. PULY ;Restore Y from Stack
  72. PULX ;Restore X from Stack
  73. RTS ;Return from DELAY Subroutine
  74.  
  75.  
  76. *Definition of symbols
  77. * 0 1 2 3 4 5 6 7 8 9 A b C d E F
  78. * - - - - - - - - - - - -
  79. * | | | | | | | | | | | | | | | | | | | | |
  80. * - - - - - - - - - - - -
  81. * | | | | | | | | | | | | | | | | | | | | | |
  82. * - - - - - - - - - - -
  83.  
  84. *********************************
  85. * Set up Symbol Table in Memory *
  86. *********************************
  87. SegCde: FCB $3F ;$3F = Code for 0
  88. FCB $06 ;$06 = Code for 1
  89. FCB $5B ;$5B = Code for 2
  90. FCB $4F ;$4F = Code for 3
  91. FCB $66 ;$66 = Code for 4
  92. FCB $6D ;$6D = Code for 5
  93. FCB $7D ;$7D = Code for 6
  94. FCB $07 ;$07 = Code for 7
  95. FCB $7F ;$7F = Code for 8
  96. FCB $6F ;$6F = Code for 9
  97. FCB $77 ;$77 = Code for A
  98. FCB $7C ;$7C = Code for B
  99. FCB $39 ;$39 = Code for C
  100. FCB $5E ;$5E = Code for D
  101. FCB $79 ;$79 = Code for E
  102. FCB $71 ;$71 = Code for F
  103.  
  104. DELAY: RMB 2 ;Reserve 2 Bytes of Memory for Delay count