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

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.

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.