add documentation about interrupt 0x14
This commit is contained in:
parent
308d16de0b
commit
bb476c4f06
1 changed files with 21 additions and 0 deletions
21
messages.asm
21
messages.asm
|
@ -14,6 +14,27 @@ start:
|
||||||
|
|
||||||
mov sp, 0x2000 ; initialise stack pointer
|
mov sp, 0x2000 ; initialise stack pointer
|
||||||
|
|
||||||
|
;; Interrupt 0x14, ah=0
|
||||||
|
;; bit 7 - 5 baud rate
|
||||||
|
;; 0 0 0 110
|
||||||
|
;; 0 0 1 150
|
||||||
|
;; 0 1 0 300
|
||||||
|
;; 0 1 1 600
|
||||||
|
;; 1 0 0 1200
|
||||||
|
;; 1 0 1 2400
|
||||||
|
;; 1 1 0 4800
|
||||||
|
;; 1 1 1 9600 (used)
|
||||||
|
;; bit 4 - 3 parity
|
||||||
|
;; 0 0 none (used)
|
||||||
|
;; 0 1 odd
|
||||||
|
;; 1 1 even
|
||||||
|
;; bit 2 stop bits
|
||||||
|
;; 0 1
|
||||||
|
;; 1 2
|
||||||
|
;; bit 1 - 0 data bits
|
||||||
|
;; 1 0 7
|
||||||
|
;; 1 1 8
|
||||||
|
|
||||||
;; initialise serial port
|
;; initialise serial port
|
||||||
mov ah, 0x0 ; initialise UART
|
mov ah, 0x0 ; initialise UART
|
||||||
mov al, 0b111_00_0_11 ; baud 9600, no parity, 1 stop bit, 8 data bits
|
mov al, 0b111_00_0_11 ; baud 9600, no parity, 1 stop bit, 8 data bits
|
||||||
|
|
Loading…
Reference in a new issue