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

30 lines
490 B
ArmAsm
Raw Normal View History

2018-12-04 09:46:27 +00:00
/* https://github.com/cirosantilli/x86-bare-metal-examples#bios-draw-pixel */
2015-09-20 12:16:43 +02:00
#include "common.h"
BEGIN
/* Enter video mode 13h. */
2015-09-20 12:16:43 +02:00
mov $0x0013, %ax
int $0x10
start:
/* Draw the pixel:
*
* * AH = 0Ch
* * AL = Color
* * BH = Page Number
* * CX = x
* * DX = y
*/
2015-09-20 12:16:43 +02:00
mov $0x0C0C, %ax
mov $0x01, %bh
mov $0x0001, %cx
mov $0x0001, %dx
int $0x10
inc %cx
inc %dx
cmp $201, %dx
jz end
jmp start
end:
hlt