DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Assembly (http://www.daniweb.com/forums/forum125.html)
-   -   About BIOS interrupt 10h? Video? (http://www.daniweb.com/forums/thread186136.html)

destruct0 Apr 10th, 2009 1:55 pm
About BIOS interrupt 10h? Video?
 
Hello!!! I would like to ask anybody can help me with "interrupt 10h". I do everything correct but every time I get a message "Segmentation fault". My code is:

section .text
global _start
_start:
mov ah,00h
mov al,45h
int 10h

When I compile the file into executable file and run it I get the message "Segmentation fault".

Can anybody help me? I use OS: LINUX and compiler: NASM.
Linux is 32 bit installation. If you can`t understand my problem please ask???

DavidOsorno Apr 14th, 2009 7:11 pm
Re: About BIOS interrupt 10h? Video?
 
Quote:

Originally Posted by destruct0 (Post 843837)
Hello!!! I would like to ask anybody can help me with "interrupt 10h". I do everything correct but every time I get a message "Segmentation fault". My code is:

section .text
global _start
_start:
mov ah,00h
mov al,45h
int 10h

When I compile the file into executable file and run it I get the message "Segmentation fault".

Can anybody help me? I use OS: LINUX and compiler: NASM.
Linux is 32 bit installation. If you can`t understand my problem please ask???

The problem seems to stem on the 16 bit intruction set.

By default, the OS will use the 32 bit schema.

destruct0 Apr 15th, 2009 7:22 am
Re: About BIOS interrupt 10h? Video?
 
Quote:

Originally Posted by DavidOsorno (Post 846122)
The problem seems to stem on the 16 bit intruction set.

By default, the OS will use the 32 bit schema.


Ok. Do you know how can i use a 32 bit "video mode" on Linux OS?


All times are GMT -4. The time now is 5:35 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC