home *** CD-ROM | disk | FTP | other *** search
- title BCDASM -- Copyright 1997, Morten Elling
- subttl Find absolute value of a packed signed BCD
-
- include model.inc
- include modelt.inc
- include bcd.ash
-
- @CODESEG
-
- ;//////////////////////////////////////////////////////////////////////
- ;// Name bcdAbs
- ;// Desc Find absolute value of a packed signed BCD.
- ;//
- ;//
- ;// Entry Passed args
- ;// Exit Destination = abs(destination).
- ;// Acc undefined.
-
- bcdAbs proc
- arg dstBCD :dataptr, \ ; Addr of BCD
- dstsz :@uint ; Byte size of BCD
- @uses ds,rbx
- ;.
- @LDS rbx, [dstBCD]
- add rbx, [dstsz]
- mov @bptr [rbx-1], 00h
- RET
- bcdAbs endp
-
- END