OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [lib/] [divs.S] - Diff between revs 45 and 59

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 45 Rev 59
Line 37... Line 37...
        NEG.NE  R0              ; Need to flip the sign of our result
        NEG.NE  R0              ; Need to flip the sign of our result
        TST     2,R3            ; Now, if R1 was originally negative
        TST     2,R3            ; Now, if R1 was originally negative
        NEG.NE  R1              ; Then negate R1
        NEG.NE  R1              ; Then negate R1
ret_div32s:
ret_div32s:
        LOD     2(SP),R3
        LOD     2(SP),R3
 
        LOD     3(SP),R2
        ADD     2,SP
        ADD     2,SP
        RETN
        JMP     R2
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.