Changeset 589 in xtideuniversalbios for trunk/Assembly_Library/Src/Util
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Math.asm
r526 r589 36 36 ALIGN JUMP_ALIGN 37 37 Math_DivQWatSSBPbyCX: 38 %if 1 38 39 xor dx, dx 39 40 mov ax, [bp+6] ; Load highest divident WORD to DX:AX … … 53 54 mov [bp], ax 54 55 ret 56 %else ; ~1 57 ; This is about half the size compared to the above code but it's not tested which is why it's commented away. 58 push di 59 mov di, 6 60 xor dx, dx 61 .Next: 62 mov ax, [bp+di] 63 div cx 64 mov [bp+di], ax 65 dec di 66 dec di 67 jns .Next 68 pop di 69 ret 70 %endif ; 1 55 71 %endif 56 72
Note:
See TracChangeset
for help on using the changeset viewer.