0

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???

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by destruct0
0

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.

0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.