Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2995

programming • Re: can i read disk sectors in basic?

$
0
0
On the 8-bit machines, OSWORD &7F is the general purpose FM (DFS) read and write function and OSWORD &72 the general purpose MFM (ADFS) read/write function.

I'm not sure exactly what is meant by turning ASCII values into decimal bytes, all bytes in a disc sector (and everywhere) can be thought of as decimal numbers between 0-255 or hexadecimal numbers &0-&FF. If the intention is to read ASCII text from a disc, such as catalogue entries or the contents of text files or even tokenised BASIC files, there are better ways to do it than directly reading disc sectors.

For example, there are plenty of operating system/filing system calls for obtaining information about files on a disc: OSGBPB 8 will read the filenames from the current directory and OSFILE 5 will read the catalogue information for the specified file.
yea, sorry to be confusing i mean decimal. i understand that.

Statistics: Posted by the777 — Fri Jan 17, 2025 1:31 am



Viewing all articles
Browse latest Browse all 2995

Trending Articles