16 bit Assembly
Using Register Addressing
Instructions and Op Codes
Overview of my Compiler
16 bit Date Extraction
FAT12 Floppy Disk Access
32 bit to 16 bit File Size
Finding Free Disk Space
16bit Memory Routines
Mouse Callback
Floppy Disk Parameters
Registers
The Root Directory
Using the Stack
Creating a Boot Disk
Direct To Screen Output
16 bit Time Extraction
Basic Display Code
File sizes are are often large that 16 bit can handle. On a Floppy disk the are 32bit. The following sample shows one way of solving this issue.
It check if the file size is greater than 64k, if less then the file size is output in bytes. If greater than 64k is output in Kilobytes rounded up to the next kilobyte.