go_away

Author Topic: Arrays in assembly language  (Read 4238 times)

0 Members and 1 Guest are viewing this topic.

Offline LunchBox!Topic starter

  • Jr. Member
  • **
  • Posts: 11
  • Helpful? 2
Arrays in assembly language
« on: April 12, 2009, 10:16:24 PM »
This is my first time building a robot.  Its for a class project.  All my parts are ordered but haven't arrived yet.  I've been reading as much as possible to be prepared when it all gets here.

I was reading the article on the sharp IR range finder..... http://www.societyofrobots.com/sensors_sharpirrange.shtml

Im having a little bit of a problem understanding how to use arrays for 2d mapping using assembly language.
I have practically no knowledge of c language, right now were learning assembly, i think we are doing c next semester and all the stuff on arrays I can find is in c.

If someone could post a sample code of how to use an array in assembly or give me a link to something, that would be excellent.

Any help is appreciated.

Offline gamefreak

  • Supreme Robot
  • *****
  • Posts: 543
  • Helpful? 2
  • Robo-Enthusiast
Re: Arrays in assembly language
« Reply #1 on: April 13, 2009, 07:50:27 AM »
Curios as to why the low level language, but I did find this after a quick google search found http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/toc.html
I have never used Assembly so I am unsure about the validity of the link, but it may be worth a look.
« Last Edit: April 13, 2009, 08:21:09 AM by gamefreak »
All hail Rodney, the holy 555 timer
And Steve said: "Let there be lead!"

Offline chelmi

  • Supreme Robot
  • *****
  • Posts: 496
  • Helpful? 15
Re: Arrays in assembly language
« Reply #2 on: April 13, 2009, 08:30:48 AM »
What is the MCU you are using? Assembly language varies a lot between MCUs!

Offline LunchBox!Topic starter

  • Jr. Member
  • **
  • Posts: 11
  • Helpful? 2
Re: Arrays in assembly language
« Reply #3 on: April 13, 2009, 09:28:43 AM »
Curios as to why the low level language, but I did find this after a quick google search found http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/toc.html
I have never used Assembly so I am unsure about the validity of the link, but it may be worth a look.


its for a class project and assembly is all we've learned so far.

What is the MCU you are using? Assembly language varies a lot between MCUs!


pic18f4520
« Last Edit: April 13, 2009, 09:31:00 AM by LunchBox! »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,585
  • Helpful? 169
    • Society of Robots
Re: Arrays in assembly language
« Reply #4 on: May 13, 2009, 08:51:34 PM »
learn C now, few people use assembly and for good reason!

Offline LunchBox!Topic starter

  • Jr. Member
  • **
  • Posts: 11
  • Helpful? 2
Re: Arrays in assembly language
« Reply #5 on: May 14, 2009, 01:35:44 PM »
learn C now, few people use assembly and for good reason!

had to for school.  got it all figured out tho.  found out about indirect addressing in my data sheet.

learning c next semester im pretty sure. i love assembly tho :)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1509 Views
Last post June 04, 2009, 06:40:28 PM
by Admin
4 Replies
736 Views
Last post March 10, 2010, 07:54:57 AM
by blackbeard
4 Replies
1856 Views
Last post September 26, 2010, 08:46:15 AM
by aruna1
2 Replies
525 Views
Last post February 21, 2012, 08:32:21 AM
by Peterpants


Get Your Ad Here