The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: UnseenMachine on November 09, 2010, 03:40:51 PM

Title: Noobz tutorials?
Post by: UnseenMachine on November 09, 2010, 03:40:51 PM
Hi folks, new here, but I am seasoned in qbasic/qb64, i also know a bit of c++/c# and want too have a go at this asm stuff now. I have downloaded genesys, but know very little about asm so if someone could provide links to a few simple intros please?
Title: Re: Noobz tutorials?
Post by: dedndave on November 09, 2010, 03:59:58 PM
there are some links in the upper right corner that have all kinds of info
the Forum Links and Website link has a link to Iczelion's Tutorials
nothing in here is simple, though   :P

welcome to the forum   :U
Title: Re: Noobz tutorials?
Post by: frktons on November 09, 2010, 04:40:25 PM
Quote from: UnseenMachine on November 09, 2010, 03:40:51 PM
Hi folks, new here, but I am seasoned in qbasic/qb64, i also know a bit of c++/c# and want too have a go at this asm stuff now. I have downloaded genesys, but know very little about asm so if someone could provide links to a few simple intros please?

More than a tutorial I think it is better to read a book and start the big thing
the right way.
One of my preferites is:

K. Irvine, "Assembly Programming for Intel Based Computers".

Frank
Title: Re: Noobz tutorials?
Post by: UnseenMachine on November 09, 2010, 04:53:20 PM
QuoteThe file you are trying to access is temporarily unavailable
but thanks.
Title: Re: Noobz tutorials?
Post by: frktons on November 09, 2010, 04:59:02 PM
Quote from: UnseenMachine on November 09, 2010, 04:53:20 PM
QuoteThe file you are trying to access is temporarily unavailable
but thanks.

Retry later or another day.

Frank
Title: Re: Noobz tutorials?
Post by: dedndave on November 09, 2010, 05:17:21 PM
 :U
Title: Re: Noobz tutorials?
Post by: dedndave on November 09, 2010, 05:27:26 PM
i removed the d/l link   :P

DjVu viewer (http://djvu.org/resources/)

DjVu to PDF converter (http://www.djvu-to-pdf.com/)
Title: Re: Noobz tutorials?
Post by: frktons on November 09, 2010, 05:28:29 PM
 :U

Frank
Title: Re: Noobz tutorials?
Post by: frktons on November 09, 2010, 06:28:42 PM
 ::)
Title: Re: Noobz tutorials?
Post by: jj2007 on November 09, 2010, 08:24:31 PM
Masm32 tips, tricks and traps (http://www.webalice.it/jj2006/Masm32_Tips_Tricks_and_Traps.htm) - two pages of dense useful tips for people coming from other languages.
Title: Re: Noobz tutorials?
Post by: UnseenMachine on November 09, 2010, 08:28:46 PM
I found what looks to be quite a promising one http://www.drpaulcarter.com/pcasm/

Thanks for the replies.
Title: Re: Noobz tutorials?
Post by: jj2007 on November 09, 2010, 10:00:00 PM
The Paul Carter book looks ok, and gives a good background on the basics of assembler, but keep in mind he writes for NASM. Not much support available, and the differences to Masm are considerable. See e.g. page 25:

2 mov eax, L1  ; EAX=address of byte at L1
3 mov [L1], ah ;copy AH into byte at L1


Masm syntax:
2 mov eax, offset L1  ; EAX=address of byte at L1
3 mov L1, ah ;copy AH into byte at L1


If you plan to switch to Masm later on, it will be a nightmare.
Carter also has a strange way to treat macros.
His code examples look correct, but for example, nobody here would use the (utterly slow) loop instruction.
He does not treat Windows at all. Compare that to what you can learn from e.g. \masm32\examples\exampl01\generic\generic.asm...
My opinion: If you have enough background on basic stuff (what is a dword, what is a pointer, what are registers and flags), then Iczelion and the Masm32 examples will be the speedier choice.