How to draw a pixel on the screen in protected mode in x86 assembly?

前端 未结 3 1091
野性不改
野性不改 2021-02-01 07:46

I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode.

I jumped to the 32-bits function t

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 08:10

    org 100h
    bits 16
    cpu 386
    
    section.text:
    START:
    mov ax,12h
    int 10h
    mov al,02h
    mov ah,0ch 
    
    pixel.asm
    c:\>nasm pixel.asm -f bin -o pixel.com
    int 10h
    

提交回复
热议问题