; simple driver test org 100h mov ah, 1 ; activate driver int 63h l1: mov di, last mov ah, 2 int 63h cmp ax, 0 je l2 cmp byte [last], 0 jne l3 call send4kb jmp l2 l3: add ax, last mov di, ax mov byte [ds:di], 36 mov ah, 9 mov dx, d1 int 21h l2: mov ah, 0bh int 21h cmp al, 0 je l1 mov ah, 0 int 16h cmp al, 27 je quit cmp al, 13 je send cmp al, 32 je TestSpeed jmp l1 quit: mov ah, 0 ; deactivate driver int 63h ret send: mov cx, d1 - d2 mov si, d2 mov ah, 3 int 63h jmp l1 send4kb: mov cx, 4096 mov si, last mov ah, 3 int 63h ret TestSpeed: mov byte [last], 0 mov cx, 0 l5: push cx call send4kb l4: mov di, last + 1 mov ah, 2 int 63h cmp ax, 0 je l4 pop cx mov dx, d3 mov ah, 9 int 21h inc cx cmp cx, 100 jb l5 mov dx, d4 mov ah, 9 int 21h jmp l1 d3 db '. $' d4 db 13, 10, 'done', 13, 10, '$' d2 db 'Quick brown fox jumped over the lazy dogs. 0123456789ABCDEF' d1 db 13,10,'Data recieved:' last: