Usefull Code Snippets
Posted: Sat Jan 19, 2008 11:05 pm
Okay ive got 3 ive found that might be usefull to people..
Warm boot
Turn off floppy drive motors
Switch to 256 colour mode (320x200)
This part is 16 bit ONLY
mov ah, 00h
mov al, 13h
int 10h
And then write to 0xA0000 , a 320x200 array of bytes, each representing the colour of each pixel
Warm boot
Code: Select all
mov ax,40h
mov es,ax
mov ax,0
mov [es:72h],ax
Code: Select all
mov dx,3F2h
mov al,0
out dx,al
Switch to 256 colour mode (320x200)
This part is 16 bit ONLY
mov ah, 00h
mov al, 13h
int 10h
And then write to 0xA0000 , a 320x200 array of bytes, each representing the colour of each pixel