Changeset 46958 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jul 4, 2013 2:13:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllAImpl.asm
r46957 r46958 1334 1334 jz .div_zero 1335 1335 %if %4 == 0 1336 mov ax, [A0] 1337 cmp ah, A1_8 1336 cmp [A0 + 1], A1_8 1338 1337 jae .div_overflow 1339 1338 %else 1340 js .divisor_negative1341 .divisor_positive:1342 mov ax, [A0]1343 test ax, ax1344 js .divisor_positive_dividend_negative1345 1346 .both_positive:1347 shl ax, 11348 cmp ah, A1_81349 jae .div_overflow1350 jmp .div_no_overflow1351 .both_negative:1352 neg ax1353 shl ax, 11354 mov al, A1_81355 neg al1356 cmp ah, al1357 jae .div_overflow1358 jmp .div_no_overflow1359 1360 .divisor_positive_dividend_negative:1361 jmp .div_no_overflow1362 .divisor_negative:1363 test ax, ax1364 js .both_negative1365 .divisor_negative_dividend_positive:1366 jmp .div_no_overflow1367 .div_no_overflow:1339 ; js .divisor_negative 1340 ;.divisor_positive: 1341 ; mov ax, [A0] 1342 ; test ax, ax 1343 ; js .divisor_positive_dividend_negative 1344 ; 1345 ;.both_positive: 1346 ; shl ax, 1 1347 ; cmp ah, A1_8 1348 ; jae .div_overflow 1349 ; jmp .div_no_overflow 1350 ;.both_negative: 1351 ; neg ax 1352 ; shl ax, 1 1353 ; mov al, A1_8 1354 ; neg al 1355 ; cmp ah, al 1356 ; jae .div_overflow 1357 ; jmp .div_no_overflow 1358 ; 1359 ;.divisor_positive_dividend_negative: 1360 ; jmp .div_no_overflow 1361 ;.divisor_negative: 1362 ; test ax, ax 1363 ; js .both_negative 1364 ;.divisor_negative_dividend_positive: 1365 ; jmp .div_no_overflow 1366 ;.div_no_overflow: 1368 1367 %endif 1369 1368
Note:
See TracChangeset
for help on using the changeset viewer.