bcd_sqrt.inc
Original bytes preserved. This is a browser-readable view.
; ======================================================================
; CS617 CHAPTER 03 - NATIVE FP SQUARE ROOT SURFACE
;
; BCD_SQRT is a project-facing wrapper around the shared low-ROM service
; at &H071F. Both OM-52C C and OM-53B BASIC call this service directly
; for square root.
;
; r001 contract under test:
; input : $10-$18 = nonnegative native expanded FP value
; output: $10-$18 = square root
;
; Provenance boundary:
; The wrapper below is Chapter 03 code. The numerical implementation is
; resident low-ROM code at &H071F; no donor-byte relocation claim applies
; to the four wrapper bytes themselves.
; ======================================================================
BCD_SQRT:
CAL &H071F
RTN