About BIOS interrupt 10h? Video?

Reply

Join Date: Apr 2009
Posts: 10
Reputation: destruct0 is an unknown quantity at this point 
Solved Threads: 0
destruct0's Avatar
destruct0 destruct0 is offline Offline
Newbie Poster

About BIOS interrupt 10h? Video?

 
0
  #1
Apr 10th, 2009
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???
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: DavidOsorno is an unknown quantity at this point 
Solved Threads: 1
DavidOsorno DavidOsorno is offline Offline
Newbie Poster

Re: About BIOS interrupt 10h? Video?

 
0
  #2
Apr 14th, 2009
Originally Posted by destruct0 View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 10
Reputation: destruct0 is an unknown quantity at this point 
Solved Threads: 0
destruct0's Avatar
destruct0 destruct0 is offline Offline
Newbie Poster

Re: About BIOS interrupt 10h? Video?

 
0
  #3
Apr 15th, 2009
Originally Posted by DavidOsorno View Post
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?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC