tällä pääsee grafiikkatilaan:
mov ax,13h
int 10h
jos halua piirtää ruudulle niin:
mov ah,0Ch
mov al, color
mov cx, x
mov dx, y
mov bx, 1
int 10h
missä x, y on koordinaatit näytöllä ja color pikselin väri.
ollos hjuva.
-----------------------
(c) CodeGuRuZ -15
All Rights Reserved
-----------------------
mov ax,13h
int 10h
jos halua piirtää ruudulle niin:
mov ah,0Ch
mov al, color
mov cx, x
mov dx, y
mov bx, 1
int 10h
missä x, y on koordinaatit näytöllä ja color pikselin väri.
ollos hjuva.
-----------------------
(c) CodeGuRuZ -15
All Rights Reserved
-----------------------
Vastaukset 3
Vanhimmat
Ja prosessori oli? Ilmeisesti x86
Loput täältä:
https://en.wikipedia.org/wiki/Ralf_Brown's_Interrupt_List
Mutta jos BIOS:ia ei ole käytössä, pitää käyttää suoria I/O portteja näyttökortin ohjelmointiin.
Käyt katsomassa BIOS:sta itse mitä tuo int 10h tekee ja otat oppia sieltä, matkit sitä koodia;)
- Vaikka jollain sourcer-ohjelmalla saat tekstinä assemblynä BIOS:n sisällön näkyville helposti.