[bits 32]			;Used to tell the assembler to now encode in 32-bit mode
VIDEO_MEMORY 	equ 0xb8000 	;Here ist the first adress of Video-mem stored in VIDEO_MEMORY

;The String is adressed by ebx and will be saved to the adress pointed to by edx

print_string_pm:
pusha				;save all registers
mov edx, VIDEO_MEMORY		;set edx to start adress of Video-mem

print_string_pm_loop:
mov al, [ebx]			;So here is the actual character that will b stored in al
mov ah, 0x0f		;Here the second half will be set to Black BG and WHITE CHARS

cmp al, 0			;Is the Termination NULL reached?
je print_string_pm_done		;then jump to end

mov [edx], ax			;Write the Code for the Char to Videomemadress
add ebx, 1			;Next Char from ebx
add edx, 2			;next Adress in Videomem
jmp print_string_pm_loop

print_string_pm_done:
popa
ret


