flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Writing a kernel in C |
Author |
|
Azh321 10 May 2005, 01:38
One of my friends showed me something like this for printing text, but I still dont know how to implement that into a function to be used in C
(this is nasm btw) Code: ORG 0xFF800000 BITS 32 SEGMENT .data message db "Message Here",0 SEGMENT .text start: mov edi, 0xB8000 mov esi, message mov ah, 7 ;Text attribute .again: lodsb stosw test al, al jnz .again jmp short |
|||
10 May 2005, 01:38 |
|
asmdemon 10 May 2005, 10:39
http://www.osdever.net/tutorials/brunmar/tutorial_03.php
This shows how to go from boot to c based kernel. If you look at the first tutorial, http://www.osdever.net/tutorials/brunmar/tutorial_02.php?the_id=18, it shows how and what to do to get into protected mode. |
|||
10 May 2005, 10:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.