1 ;;; Bootsector to erase MBR
2 ;;; Compile with: as86 -b erase-mbr.o -s erase-mbr.sym erase-mbr.s
3 ;;; Copyright (c) 2009, Arnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
19 mov di, #(endflag + 2)
29 mov bx, #(endflag + 2)
55 ;; clear keyboard buffer
79 ;;; es:bp asciz string address
81 ;;; string is printed on screen
83 ;;; ax, bx, cx, dx, di
85 ;; current screen page -> bh
88 ;; cursor position -> dh:dl
91 ;; compute string length
108 .ascii "0123456789ABCDEF"
110 .asciz "Erasing partition table..."
119 .asciz "Press any key to reboot.\n\r"
122 .space (512 - 2) - (padding - start)