System: Real mode
CPU: Pentium 400 mhz
Compiler: Nasm
Here is my code:
Code: Select all
[BITS 16]
[ORG 0x7C00]
jmp short begin
;****************************************************************
;* Floppy header record??????????????????*
;****************************************************************
OEMStr ???db 'SEAZONE.'
BytesPerSector ???dw 512
SectorsPerCluster ???db 1
ReservedSector ???dw 1
TotalFatCount ???db 2
MaxRootEntries ???dw 224
TotalSectorShort ???dw 2880
MediaDescriptor db 0xF0
SectorsPerFat ???dw 9
SectorsPerTrack ???dw 18
TotalHeader ???dw 2
HiddenSectors ???dd 0
TotalSectorsLong ???dd 0
BootDriver ???db 0
Reserved ???db 0
Signature ???db 29h
VolumeID ???dd 0
VolumeLabel ???db 'BIG BIG COW'???
FileSystemType ???db 'FAT12 '
begin:
???mov ah, 0x0e
???mov al, 'A'
???mov bx, 0x0007
???int 0x10
cli
hlt
WelcomeMessage db 'Welcome to Seazone Big Big Cow Operating System.', 13, 10, 0
times 512-($-$$)-2 db 0
BootSignature db 0x55, 0xAA
Thank you.