Changeset 287 in xtideuniversalbios for trunk/Assembly_Library/Inc/Delay.inc
- Timestamp:
- Mar 2, 2012, 12:31:39 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Delay.inc
r247 r287 29 29 ; 486: 7 cycles for jump + 6 cycles for last comparison 30 30 ; 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 31 39 ; DELAY_WITH_LOOP_INSTRUCTION 32 40 ; Parameters 33 41 ; CX: Loop iterations (0 is maximum delay with 65536 iterations) 34 42 ; Returns: 43 ; CX: Zero 44 ; Corrupts registers: 35 45 ; Nothing 36 ; Corrupts registers:37 ; CX38 46 ;-------------------------------------------------------------------- 47 %macro DELAY_WITH_LOOP_INSTRUCTION_NA 0 48 %%StartOfLoop: 49 loop %%StartOfLoop 50 %endmacro 51 39 52 %macro DELAY_WITH_LOOP_INSTRUCTION 0 53 ALIGN JUMP_ALIGN 40 54 %%StartOfLoop: 41 55 loop %%StartOfLoop
Note:
See TracChangeset
for help on using the changeset viewer.