Name: Anonymous 2014-05-18 2:33
I am on Windows using FASM. Is this ok? Any tutorials? I'm not really interested in learning the winAPI, console applications are fine.
I am on Windows using FASM. Is this ok?FASM might be ok, nasm is better. Windows is not ok.
Any tutorials?Assembly programs are just bunch of instructions. It's probably so simple there's no need for tutorials.
// a, b and c are unsigned long integers
if (a < b) goto something_else;
c = a + b;
goto end;
something_else:
c = a - b;
end: ;
; Assembly version, variables a, b and c are stored in registers rax, rbx, rcx
cmp rax, rbx ; compare rax and rbx
jl something_else ; "jump if less"
mov rcx, rax ; c = a
add rcx, rbx ; c += b
jmp end
something_else:
mov rcx, rax ; c = a
sub rcx, rbx ; c -= b
end:
I'm not really interested in learning the winAPI