i would eventualy try to write a bootloader but before that i need some basic skill's so this is my first progie
i tryed to use bios interupt becauls i'll only need them
this is my code
Code: Select all
; File: First.asm
; First assembly program this program prints a message
;
; To create executable using djgpp:
; nasm -f coff first.asm
; gcc -o first first.o
segment .data
MSG DB "Dit is een test",13,10,"Cool he",0
;
; initialized data is put in the data segment
;
segment .bss
;
; uninitialized data is put in the bss segment
;
segment .text
global _asm_main
_asm_main:
enter 0,0 ;setup routine
pusha
MOV AX,0x1301
MOV BX,0x0007
MOV CX,0x23
MOV BP,MSG
ADD BP,0x7C00
INT 0x10
;
; code is put in the text segment. Do not modify the code before
; or after this comment
;
popa
mov eax,0 ;return back to C
leave
ret
i compiled the this like
nasm -f bin filename.asm -o filename.com
]_^Y├VWU??P???~
6?>JN t<1█????├?V■?
what am i doing wrong ???