View Single Post
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#7
Originally Posted by electroaudio View Post
Yes, but that is something that is very obvious while learning assembler.
-As i see it, its much better to spend an afternoon to learn how ML works instead of spending months on trying to decode the "magic" behind C.

For instance.
set adress 0200 and forward in the memory to "hello world$" then write.

Mov ah,09
mov dx, 0200
call function int 21h

will print "Hello world" on the screen.

-This little routine is easy to understand, and everything from pointers to functioncalls and their parameters are explained here.
..and,everything with numbers like boolean long short signed and unsigned integers and float and why you cant mix them, is also very obvious when you have a grasp of how ML/assembler works.
Code:
#include <stdio.h>
int main () {
printf ("Hello World!\n");
}

Probably best to let the OP decide what's the easiest path...
__________________
May the source be with you.
 

The Following 7 Users Say Thank You to jedi For This Useful Post: