diff options
Diffstat (limited to 'bootblocks/tich.s')
-rw-r--r-- | bootblocks/tich.s | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/bootblocks/tich.s b/bootblocks/tich.s new file mode 100644 index 0000000..830f742 --- /dev/null +++ b/bootblocks/tich.s @@ -0,0 +1,38 @@ +! + +org 0 + call chk !This chunk allows this code to exist at _any_ click +chk: + pop ax + mov cl,#4 + shr ax,cl + mov bx,cs + add ax,bx + push ax + mov bx,#going + push bx + retf +going: + mov ds,ax + mov es,ax + +! Print 'mesg' + mov ah,#0x03 ! read cursor pos + xor bh,bh + int 0x10 + + mov cx,#(emesg-mesg) + mov bp,#mesg + mov bx,#$7 ! page 0, attribute 7 (normal) + mov ax,#$1301 ! write string, move cursor + int $10 + +nogood: + j nogood + +mesg: +.ascii "Hello world" +emesg: + +org 510 + .word 0xAA55 |