Changeset 207 in xtideuniversalbios for trunk/Assembly_Library/Src/Util
- Timestamp:
- Jan 7, 2012, 7:57:57 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Registers.asm
r149 r207 69 69 ; Corrupts registers: 70 70 ; AX, CX 71 ; 72 ; Inline of NORMALIZE_FAR_POINTER so that we can share the last 2/3 of the 73 ; routine with Registers_NormalizeFinish. 74 ; 71 75 ;-------------------------------------------------------------------- 72 76 ALIGN JUMP_ALIGN 73 77 Registers_NormalizeESSI: 74 NORMALIZE_FAR_POINTER es, si, ax, cx 75 ret 78 mov cx, si 79 and si, byte 0fh 80 jmp Registers_NormalizeFinish 76 81 77 82 ALIGN JUMP_ALIGN 78 83 Registers_NormalizeESDI: 79 NORMALIZE_FAR_POINTER es, di, ax, cx 84 mov cx, di 85 and di, byte 0fh 86 ;;; fall-through 87 88 ALIGN JUMP_ALIGN 89 Registers_NormalizeFinish: 90 eSHR_IM cx, 4 91 mov ax, es 92 add ax, cx 93 mov es, ax 80 94 ret 81 95 82 96 83 97 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.