Warning! Untested code!
%include "io.inc"
extern _printf
section .data
fmt db "result is %d", 10, 0
section .text
global CMAIN
CMAIN:
mov ebp,esp ;for correct debugging
NEWLINE
mov eax,10h
mov eax, 40h
sub eax,20h
push fmt
push eax
call _printf
add esp, 8
xor eax,eax
ret
Doggone it! Where do I find "io.inc'? Well, SASM I guess...
Something like that...
Doggone it! Someone doing 'doze help this guy!
Best,
Frank
P.S. "code" in square brackets, "/code" in square brackets...