multiply_and_divide.py (6485:4f70960761cd) | multiply_and_divide.py (6503:843ec3da7584) |
---|---|
1# Copyright (c) 2007 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 445 unchanged lines hidden (view full) --- 454 sub t1, t0, rax, flags=(ECF,), dataSize=1 455 ruflag t4, 3 456 sub t2, t0, ah, dataSize=1 457 sub t2, t2, t4 458 459 ld t8, seg, sib, disp 460 461 #Find the sign of the divisor | 1# Copyright (c) 2007 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 445 unchanged lines hidden (view full) --- 454 sub t1, t0, rax, flags=(ECF,), dataSize=1 455 ruflag t4, 3 456 sub t2, t0, ah, dataSize=1 457 sub t2, t2, t4 458 459 ld t8, seg, sib, disp 460 461 #Find the sign of the divisor |
462 slli t0, t3, 1, flags=(ECF,), dataSize=1 | 462 slli t0, t8, 1, flags=(ECF,), dataSize=1 |
463 464 # Negate divisor 465 sub t3, t0, t8, dataSize=1 466 # Put the divisor's absolute value into t3 467 mov t3, t3, t8, flags=(nCECF,), dataSize=1 468 469 #Find the sign of the dividend 470 slli t0, ah, 1, flags=(ECF,), dataSize=1 --- 55 unchanged lines hidden (view full) --- 526 ruflag t4, 3 527 sub t2, t0, ah, dataSize=1 528 sub t2, t2, t4 529 530 rdip t7 531 ld t8, seg, riprel, disp 532 533 #Find the sign of the divisor | 463 464 # Negate divisor 465 sub t3, t0, t8, dataSize=1 466 # Put the divisor's absolute value into t3 467 mov t3, t3, t8, flags=(nCECF,), dataSize=1 468 469 #Find the sign of the dividend 470 slli t0, ah, 1, flags=(ECF,), dataSize=1 --- 55 unchanged lines hidden (view full) --- 526 ruflag t4, 3 527 sub t2, t0, ah, dataSize=1 528 sub t2, t2, t4 529 530 rdip t7 531 ld t8, seg, riprel, disp 532 533 #Find the sign of the divisor |
534 slli t0, t3, 1, flags=(ECF,), dataSize=1 | 534 slli t0, t8, 1, flags=(ECF,), dataSize=1 |
535 536 # Negate divisor 537 sub t3, t0, t8, dataSize=1 538 # Put the divisor's absolute value into t3 539 mov t3, t3, t8, flags=(nCECF,), dataSize=1 540 541 #Find the sign of the dividend 542 slli t0, ah, 1, flags=(ECF,), dataSize=1 --- 130 unchanged lines hidden (view full) --- 673 ruflag t4, 3 674 sub t2, t0, rdx 675 sub t2, t2, t4 676 677 ld t8, seg, sib, disp 678 679 #Find the sign of the divisor 680 #FIXME!!! This depends on shifts setting the carry flag correctly. | 535 536 # Negate divisor 537 sub t3, t0, t8, dataSize=1 538 # Put the divisor's absolute value into t3 539 mov t3, t3, t8, flags=(nCECF,), dataSize=1 540 541 #Find the sign of the dividend 542 slli t0, ah, 1, flags=(ECF,), dataSize=1 --- 130 unchanged lines hidden (view full) --- 673 ruflag t4, 3 674 sub t2, t0, rdx 675 sub t2, t2, t4 676 677 ld t8, seg, sib, disp 678 679 #Find the sign of the divisor 680 #FIXME!!! This depends on shifts setting the carry flag correctly. |
681 slli t0, t3, 1, flags=(ECF,) | 681 slli t0, t8, 1, flags=(ECF,) |
682 683 # Negate divisor 684 sub t3, t0, t8 685 # Put the divisor's absolute value into t3 686 mov t3, t3, t8, flags=(nCECF,) 687 688 #Find the sign of the dividend 689 #FIXME!!! This depends on shifts setting the carry flag correctly. --- 59 unchanged lines hidden (view full) --- 749 sub t2, t0, rdx 750 sub t2, t2, t4 751 752 rdip t7 753 ld t8, seg, riprel, disp 754 755 #Find the sign of the divisor 756 #FIXME!!! This depends on shifts setting the carry flag correctly. | 682 683 # Negate divisor 684 sub t3, t0, t8 685 # Put the divisor's absolute value into t3 686 mov t3, t3, t8, flags=(nCECF,) 687 688 #Find the sign of the dividend 689 #FIXME!!! This depends on shifts setting the carry flag correctly. --- 59 unchanged lines hidden (view full) --- 749 sub t2, t0, rdx 750 sub t2, t2, t4 751 752 rdip t7 753 ld t8, seg, riprel, disp 754 755 #Find the sign of the divisor 756 #FIXME!!! This depends on shifts setting the carry flag correctly. |
757 slli t0, t3, 1, flags=(ECF,) | 757 slli t0, t8, 1, flags=(ECF,) |
758 759 # Negate divisor 760 sub t3, t0, t8 761 # Put the divisor's absolute value into t3 762 mov t3, t3, t4, flags=(nCECF,) 763 764 #Find the sign of the dividend 765 #FIXME!!! This depends on shifts setting the carry flag correctly. --- 54 unchanged lines hidden --- | 758 759 # Negate divisor 760 sub t3, t0, t8 761 # Put the divisor's absolute value into t3 762 mov t3, t3, t4, flags=(nCECF,) 763 764 #Find the sign of the dividend 765 #FIXME!!! This depends on shifts setting the carry flag correctly. --- 54 unchanged lines hidden --- |