Вот пример приложения, осуществляющего прямой вывод на экран...
Код:
include "deformat.inc"
include "macros.inc"
include "syscalls.inc"
include "stdout.inc"
include "putstr.inc"
defsection CODE
{
call getconsole; eax = 0 & ebx = 0
mov eax, 3
call setvideomode
mov eax, videobuf
mov ecx, 1000h
call attachvideobuffer
mov esi, hellostr
call putstr
@@: call getevent
sub eax, EI_KEYDOWN
jnz @b
exit: xor esi, esi; eax = 0
int 60h
induct 32, getconsole, getevent, attachvideobuffer
induct 32, setvideomode, getsuperpos, setsuperpos
induct 32, putstr
}
defsection DATA
{
hellostr db 14h, "H", 1Ch, "e", 1Eh, "l", 1Ah, "l", 19h, "o", 32
db 11h, "w", 15h, "o", 14h, "r", 1Ch, "l", 1Eh, "d", 32
db 17h, "Press any key to exit...", 32, 0
}
defsection RMA
{
align4M
videobuf rb 1000h
}
storefile 400000h, 1000h, 400000h