Login

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

 ifndef included_xrsub
 define included_xrsub
 include "../common/pushpop.asm"
 include "../common/mov.asm"
 include "xadd.asm"
xrsub:
;Input:
;  HL points to one number
;  DE points to another
;xadd+60
  call pushpop
  push bc
  call xrsubpp;+_
  pop de
  ld hl,xOP3
  jp mov10
xrsubpp;_:
;copy the inputs to xOP2 and xOP3, leaving xOP1 open for shifting
  push de
  ld de,xOP2
  call mov10
  dec de
  ld a,(de)
  xor 80h
  ld (de),a
  inc de
  pop hl
  call mov10
  jp subadd_stepin
 endif