I have a simple program in x86 assembly language. It should print a string directly to the video memory without OS.
[bits 16] [org 0x7c00] mov ax, 0x3 int 0x
With the repnz prefix you must first set the cx register to the character count, and as nrz points out you shouldn't use that one as it stops when zero is encountered.
repnz
cx