Files
x86-bare-metal-examples/bios_cursor_position.S

21 lines
264 B
ArmAsm
Raw Normal View History

2015-09-20 10:59:36 +02:00
#include "common.h"
BEGIN
CLEAR
/* Print "ab" */
2015-09-20 15:51:38 +02:00
PUTC($0x61)
PUTC($0x62)
2015-09-20 10:59:36 +02:00
/* Move back to 0, 0.*/
mov $0x02, %ah
/* page number 0. TODO what is this? */
mov $0x0, %bh
/* DH=0 row, DL=0 col */
mov $0x0, %dx
int $0x10
/* Overwrite 'a' with c'. */
2015-09-20 15:51:38 +02:00
PUTC($0x63)
2015-09-20 10:59:36 +02:00
hlt