Applied patch #2762516
[fw/sdcc] / device / lib / z80 / mul.s
index 61ff5cf34179e99e6ab25d8ac8c2726725d46555..e81ac80040b958cb5be49d3e9b458f748d5900d7 100644 (file)
@@ -1,17 +1,12 @@
         .area   _CODE
 
 __mulint_rrx_s::
-        ld      hl,#2
-        add     hl,sp
-
-        ld      e,(hl)
-        inc     hl
-        ld      d,(hl)
-        inc     hl
-        ld      a,(hl)
-        inc     hl
-        ld      h,(hl)
-        ld      l,a
+        pop     af
+        pop     hl
+        pop     de
+        push    de
+        push    hl
+        push    af
 
         ;; Fall through