View Single Post
Posts: 146 | Thanked: 99 times | Joined on Jan 2012 @ Lisbon, Portugal
#15
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 ... why they exist and why you cant mix them, is also very obvious when you have a grasp of how ML/assembler works.
Your example only works on x86 assembler, and INT21h calls the MS-DOS API (roughly equivalent to stdio.h, but only if there's a DOS running somewhere): DOS INT 21h - DOS Function Codes. That wouldn't work on an N900.
__________________
SGH-2100,T39i,T68m,K750,T700,N95-1,N9/64
I like to stroke my N9 - My preciousssss....
Need Portuguese (European) localizations? Ask me.
 

The Following 4 Users Say Thank You to tigas For This Useful Post: