Changeset 287 in xtideuniversalbios for trunk/Assembly_Library/Inc
- Timestamp:
- Mar 2, 2012, 12:31:39 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/Assembly_Library/Inc
- Files:
-
- 4 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 -
trunk/Assembly_Library/Inc/Display.inc
r186 r287 179 179 180 180 ; Cursor shapes 181 CURSOR_NORMAL EQU 0607h ; Two line cursor near or at the bottom of cell 181 CURSOR_NORMAL EQU 0607h ; Two line cursor near or at the bottom of cell (not valid for IBM MDA) 182 182 CURSOR_HIDDEN EQU 2000h 183 183 … … 212 212 213 213 ; Non ASCII characters (code page 437) 214 BETA EQU 225 214 215 QUOTATION_MARK EQU 34 215 216 DOUBLE_TOP_RIGHT_CORNER EQU 187 -
trunk/Assembly_Library/Inc/Math.inc
r181 r287 65 65 66 66 ;-------------------------------------------------------------------- 67 ; SHL_DXAX 68 ; Parameters: 69 ; %1: Number of bits to shift 70 ; Returns: 71 ; DX:AX Shifted value 72 ; Corrupts registers: 73 ; CX 74 ;-------------------------------------------------------------------- 75 %macro SHL_DXAX 1 76 %ifnidni %1, cx 77 mov cx, %1 78 %endif 79 ALIGN JUMP_ALIGN 80 .ShiftNextBit: 81 shl ax, 1 82 rcl dx, 1 83 loop .ShiftNextBit 84 %endmacro 85 86 87 ;-------------------------------------------------------------------- 67 88 ; SHR_DXAX 68 89 ; Parameters: -
trunk/Assembly_Library/Inc/SystemTimer.inc
r256 r287 34 34 CONTROL_WORD_REGISTER_out EQU 43h 35 35 36 ; Timer 2 is Connected to PC Speaker that can be controller from port 61h.36 ; Timer 2 is connected to PC Speaker that can be controller from port 61h. 37 37 SPEAKER_CONTROL_REGISTER EQU 61h 38 38 FLG_TIMER_2_OUTPUT_in EQU (1<<5) ; AT+ only
Note:
See TracChangeset
for help on using the changeset viewer.