From a84fadd65d923fbb71c5c2b9884972114a0c2928 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 19 Dec 2020 20:59:40 -0800 Subject: 7355 - learning to boot into 32-bit mode These exercises are from the incomplete "Writing a simple operating system from scratch" by Nick Blundell. https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf --- apps/bos/print_string.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/bos/print_string.asm (limited to 'apps/bos/print_string.asm') diff --git a/apps/bos/print_string.asm b/apps/bos/print_string.asm new file mode 100644 index 00000000..555e4d52 --- /dev/null +++ b/apps/bos/print_string.asm @@ -0,0 +1,11 @@ +print_string: + pusha + mov ah, 0x0e +loop: + mov al, [bx] + int 0x10 + add bx, 1 + cmp al, 0 + jne loop + popa + ret -- cgit 1.4.1-2-gfad0