Changeset 287 in xtideuniversalbios for trunk/Assembly_Library/Inc/Delay.inc


Ignore:
Timestamp:
Mar 2, 2012, 12:31:39 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • Hopefully fixed a problem of wrong sized MDA cursor.
  • Some minor improvements.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Delay.inc

    r247 r287  
    2929;   486:         7 cycles for jump + 6 cycles for last comparison
    3030;
     31; LOOP instruction uses two bytes so aligned fetching will require:
     32;   8088:       8 cycles (two BYTE reads)
     33;   8086:       4 cycles (one WORD read)
     34;   286:        2 cycles + wait states (usually 1)
     35;   386:        ?
     36;   486:        Fetched only once to internal cache
     37;
     38; DELAY_WITH_LOOP_INSTRUCTION_NA    ; No JUMP_ALIGN
    3139; DELAY_WITH_LOOP_INSTRUCTION
    3240;   Parameters
    3341;       CX:     Loop iterations (0 is maximum delay with 65536 iterations)
    3442;   Returns:
     43;       CX:     Zero
     44;   Corrupts registers:
    3545;       Nothing
    36 ;   Corrupts registers:
    37 ;       CX
    3846;--------------------------------------------------------------------
     47%macro DELAY_WITH_LOOP_INSTRUCTION_NA 0
     48%%StartOfLoop:
     49    loop    %%StartOfLoop
     50%endmacro
     51
    3952%macro DELAY_WITH_LOOP_INSTRUCTION 0
     53ALIGN JUMP_ALIGN
    4054%%StartOfLoop:
    4155    loop    %%StartOfLoop
Note: See TracChangeset for help on using the changeset viewer.