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

31 lines
580 B
ArmAsm
Raw Normal View History

2018-12-04 09:46:27 +00:00
/* https://github.com/cirosantilli/x86-bare-metal-examples#bios-scroll */
2015-09-20 10:59:36 +02:00
#include "common.h"
BEGIN
CLEAR
PRINT_STRING $stair
2015-09-20 10:59:36 +02:00
/* Function ID. */
mov $0x06, %ah
/* Number. of lines to scroll */
2015-09-20 10:59:36 +02:00
mov $0x01, %al
/* BIOS color attributes.
* Background is the clear color.
* Foreground is set as the new foreground color.
*/
2015-09-20 10:59:36 +02:00
mov $0xA4, %bh
/* CH,CL: row,column upper left corner (00:00)
* TODO what does that mean?
*/
2015-09-20 10:59:36 +02:00
mov $0x0101, %cx
/* DH,DL: row,column lower right corner (24:79).
* TODO what does it mean?
*/
2015-09-20 10:59:36 +02:00
mov $0x0202, %dx
int $0x10
hlt
2015-09-24 10:17:28 +02:00
stair:
.asciz "a\nb\nc\nd"