Assembler
BIOS interrupts
Interrupt 5h (BIOS): Dumps the screen to the printer. (As Print Scrn) Interrupt 10h (BIOS):
Function Comment number (AH) Change 00h videomode Data in AL=0 gives 40x25text AL=2 gives 80x25 text AL=4 gives 320x200 graphics AL=6 gives 640x200 graphics AL=7 gives 80x25 black&white text AL=E gives 640x200 graphics AL=F gives 640x350 graphics Data out -
01h
Set sizeof cursor Monochrome and EGA uses lines 0-13, others 0-7 CH=first line CL=last line Bit 5 in CH=1 hides cursor. (Bit 5 has a value of 32)
02h
Set cursor pos
DH=line number (0-24) DL=column(0-79) BH=page number (0-3)
-
03h
Get cursor settings (and position)
DH=line number DL=column CH=the cursor's first line CL=the cursor's last line -
05h 06h
Change page numberAH=Page number
Scroll window up AL=lines to scroll
BH=attribute for characters CH=first line CL=left column DH=last line DL=right column 07h Scroll window down AL=lines to scroll BH=attribute forcharacters CH=first line CL=left column DH=last line DL=right column BH=page number AH=character AL=attribute - NOTE! The cursor doesn't move automatically -
08h 09h
Read character and attributeWrite character or AL=character (ASCII) attribute BH=page number BL=attribute CX=repetition Write graphic element Read graphic element Write character AL=color CX=column DL=row CX=column DL=rowAL=character BH=active page BL=foreground colour -
0Ch
0Dh 0Eh
AL=color - NOTE! The cursor moves automatically. AH=width in characters AL=videomode BH=page number
0Fh
Get actual videomodeInterrupt 14h (BIOS): Serial communication.
Function number (AH) Comment 00h Data in Data out
Initialize the serial port AL=bitcoded as below: 7 6 5 Baudrate 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 10 1 0 110 150 300 600 1200 2400 4800
1 1 1 9600 4 3 Parity 0 0 1 1 0 1 0 1 No parity Odd parity No parity Even parity
2 Stopbits 0 One stopbit 1 Two stopbits 1 0 Charlength 1 0 Seven bits 1 1...
Regístrate para leer el documento completo.