Author Topic: Beginner practice problems in NASM?  (Read 7177 times)

Offline Slash5331

  • Jr. Member
  • *
  • Posts: 9
Beginner practice problems in NASM?
« on: October 14, 2013, 08:19:52 AM »
Not sure if this is the right thread, if not would be great if it could be moved :)

Hey all, I'm looking for some beginner practice problems.  I have searched the net and found plenty of problems but none which either relate to assembly (let alone assembly beginners) or are at the sort of level I am capable of coding in assembly.

I am a huge beginner and have an ok grasp of functions (can be recursive), variables, basic file IO (text files and things), basic arithmetic, and not really much else.

If anyone could please suggest any practice problems for someone of my rather small ability it would be great :)

Also, just as a little side question; I have been programming with 32-bit linux nasm assembly.  I'm enjoying it so far but I'm concerned by the increasing number of 64-bit processors.  I figure I will have to learn a new assembly language for it eventually and I was wondering how hard it is to make the change from 32 to 64 bit, as I don't want to learn 32 bit and then suddenly have it become a lost language.


Cheers

Offline encryptor256

  • Full Member
  • **
  • Posts: 250
  • Country: lv
  • Win64 .
    • On Youtube: encryptor256
Re: Beginner practice problems in NASM?
« Reply #1 on: October 14, 2013, 09:23:03 AM »
Hi!
Need problems?
You can find problems here:
http://projecteuler.net/
http://projecteuler.net/problems

Start with this one:
http://projecteuler.net/problem=13

"Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve."

64bit?
I bought my computer about four years ago, i was thinking it is 32bit,
but recently i found that actually my pc is 64bit, so i swithced to 64bit.
I think 64bit is the future, sooner or later, will be. :)
« Last Edit: October 14, 2013, 09:28:47 AM by encryptor256 »
Encryptor256's Investigation \ Research Department.

Offline nullptr

  • Jr. Member
  • *
  • Posts: 27
Re: Beginner practice problems in NASM?
« Reply #2 on: October 14, 2013, 03:25:52 PM »
Yep guys in 2003 AMD introduced first 64 bit CPU - Athlon 64. So i think it is right time to
start coding in 64 bits:). Execpt Intel Atom there are no longer produced 32-bit processors
But people still doing 32-bit coding. Nevermind:)

I found that site where find some interesting stuff:

http://sixrevisions.com/resources/10-puzzle-websites-to-sharpen-your-programming-skills/

Offline Rob Neff

  • Forum Moderator
  • Full Member
  • *****
  • Posts: 429
  • Country: us
Re: Beginner practice problems in NASM?
« Reply #3 on: October 14, 2013, 03:28:04 PM »
The techniques and knowledge you gain from 32-bit programming will help when you transition to 64-bit programming.  You'll be mixing 32/64-bit code for many years to come so it's not a lost cause.

Yes, there are of course quite a few differences - especially in the area of calling conventions!
But I think you'll find x64 is quite liberating with access to increased register size, more registers and memory available, etc...

The links provided by encryptor256 are a great way to think about problems and then attempt to solve them using the nasm assembler.  The good news is we will help you overcome various hurdles along the way - provided you can show us that you have put in the required effort to solve it yourself.  It does you no good if we provide a full working solution to your problems.  Good Luck!