F$DATLog

DAT to Logical Address
Converts a DAT image block number and block offset to its equivalent logical address

OS9 F$DATLog 103F 44

Entry Conditions

B DAT image offset
X block offset

Exit Conditions

X logical address

Error Output

CC carry set on error
B error code, if any

Additional Information

  • Following is a sample conversion:

2000 - 2FFF
 
Input: B = 2
X = $0329

1000 - 1FFF
 
Output: X=$2329

0000 - 0FFF
 
 

krn


MongoDB Logo MongoDB