Willard,
Shouldn't E be loaded with 9 instead of 10? Looks like the file length
is 9 to me (also the max len supported by the routine at 4C0BH).
Ken
On 6/8/17 11:10 PM, Willard Goosey wrote:
OK, so the ROM call PRSNAM, by Nuge's list:
4C0BH - Format filename and check validity
Entry:
HL - Points to buffer containing filename (w/ext &
delim)
E - Length of filename, including delimiter and
extension
Exit:
But this code:
F000 951 org 0F000h
F000 952 start:
F000 210CF0 953 lxi h,fname
F003 1E0A 954 mvi e,10
F005 CD0B4C 955 call PRSNAM
F008 CDCB12 956 call CHGET
F00B C9 957 ret
958
959
960
961
F00C 524E5354 962 fname db 'RNSTAR.CO'
F010 41522E43
F014 4F
F015 00 963 fnamet db 0
dumps me into BASIC with a NM error? before it gets to CHGET. For a file
that DOES exist.
Any ideas? I've been fighting this for half the day and I give up!
Willard