Author Topic: For the last time, I am NOT going to use $9D95 in my early ASM lessons  (Read 24912 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
There have been a lot of people that have asked me why I choose to use .org 40339 to start ASM programs in my lessons.  I wrote this up because I hope that people who read it will understand why, even if they themselves don't like it.

I know that most of the time, RAM addresses are stated as hexadecimal, and indeed, when hexadecimal is introduced in my ASM lessons, I switch to .org $9D93.

But is it absolutely necessary?  Will the universe or the person's calculator explode if I use 40339?  These lessons are for the absolute beginner!  BEGINNER!  Why on earth does it matter whether I use hexadecimal or decimal at the beginning?  Let me repharse: why am I making a big deal out of this?

Well, do you know why my lessons are successful?  Because I expalin to people exactly how everything works and I make it easy for them.  Read my third lesson on RAM addresses, where I explain and help people understand what ram addresses are.  Then ask yourself: Which is easier to understand, that the ASM program starts at the 40339th byte of the calculator?  Or that the ASM program starts at the 9D93th byte?  When I show what compiled ASM programs look like, is it easier for a beginner to count in decimal, or in hexadecimal?

You can disagree with me as much as you want, but if you read this, please don't bug me on the "method to my madness."  No hard feelings, but I just hear it so many times that I start to feel like I'm an idiot for not "following the rules."  Whatever the case, my  lessons have not lost popularity from choosing to use decimal numbers.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
I actually like that style.  I up-rated your post, but I think it could have been done slightly nicer.  When you say this, it makes you seem like an expert on everything.  (Granted, you might just be.) Anyway, I would just say something along the lines of $9D95 would work too, but we'll get to that later.  I love concepts that build up, because it reinforces and gives use to the knowledge you have.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
I up-rated your post, but I think it could have been done slightly nicer.  When you say this, it makes you seem like an expert on everything.  

Interesting.  Yeah, it could be nicer, and I knew it even while I was typing it up.  But it's not me seeming liking an expert.  It's frustration because everyone's telling me "No, you need to do it this way!" as if THEY are experts on everything.


EDIT: Thanks for pointing this out, though, because I tried to be a good sport, and I know now that I wasn't
« Last Edit: March 06, 2011, 04:54:25 pm by Hot_Dog »

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
I up-rated your post, but I think it could have been done slightly nicer.  When you say this, it makes you seem like an expert on everything. 

Interesting.  Yeah, it could be nicer, and I knew it even while I was typing it up.  But it's not me seeming liking an expert.  It's frustration because everyone's telling me "No, you need to do it this way!" as if THEY are experts on everything.
oh, I totally understand.  9D95 is just easy to learn methinks.  Instead of 40339. (Wait, I just memorized it in like 2 seconds, hey, look at that).  I think a lot of ASM programmers mentalities are "we'll tell you this, and you'll just go with it, but we'll explain it later". 
<off-topic>
Anyway, yeah.  I think I'm gonna change my avatar, the thing is starting to freak me out. ;-)
</off-topic> 

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
I'm in the $9D95 camp. I just feel everything works out better for everyone if we use the accepted and widely-held convention of hex for addresses. :) No hard feelings that you disagree.



Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
I'm in the $9D95 camp. I just feel everything works out better for everyone if we use the accepted and widely-held convention of hex for addresses. :) No hard feelings that you disagree.

Hmmm, you have a point, because when people ask for help it is easier for people they ask to see $9D95.  I think I'll make a note of that in Tutorial 4

SirCmpwn

  • Guest
These tutorials are yours, and you are free to do what you want.  However, my opinion is that decimal has little place in assembly, and no place whatsoever when referring to addresses.  Do what you like with your tutorials, but the standard is hexadecimal.

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
I've had several users ask me for help, and be confused that I wrote .org $9d95, and mention that they also saw the $9D95 in lots of example code and don't understand it.  I would definitely advise that, although as you said, if you don't want to change your tutorials, that's your perogative.



Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
By the way, thank you all for your comments and for listening to my side of the story, and I apologize if I offended anyone

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Well, I suggest to begin with .org 40339, then explaining thing about the 40339 byte, then switch to hex, explaining everyone uses hex because it's easier, while explaining hex, then never talk of the decimal form again.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: For the last time, I am NOT going to use $9D95 in my early ASM lessons
« Reply #10 on: March 06, 2011, 05:12:50 pm »
Well, I suggest to begin with .org 40339, then explaining thing about the 40339 byte, then switch to hex, explaining everyone uses hex because it's easier, while explaining hex, then never talk of the decimal form again.
This is a good idea - you can even introduce it with this:

Quote
So you're coding away, and you start noticing this weird thing in other people's ASM programs:
Code: [Select]
.org $9D95...and you're wondering - WHAT IS THIS WEIRD THING? WHAT AM I DOING WRONG?
Fortunately, you're doing nothing wrong - it's just .org $9D95 is the same as .org 40339! :)
This will definitely clear up any ASM beginner confusion :D
« Last Edit: March 06, 2011, 05:16:50 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: For the last time, I am NOT going to use $9D95 in my early ASM lessons
« Reply #11 on: March 06, 2011, 05:14:43 pm »
Yeah, something like that.  +1 for both of you

But I won't be able to do it immediately, sadly, I have a lot going on

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: For the last time, I am NOT going to use $9D95 in my early ASM lessons
« Reply #12 on: March 06, 2011, 05:18:08 pm »
As an ASM learner (from your lessons), I don't mind if it starts with 40339 or $9D95.  (But then I already knew Hex)

The person learning ASM can always substitute one for the other, like how I use bcall() instead of B_CALL.

EDIT: Woa, double Ninja'd
« Last Edit: March 06, 2011, 05:18:47 pm by ralphdspam »
ld a, 0
ld a, a

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: For the last time, I am NOT going to use $9D95 in my early ASM lessons
« Reply #13 on: March 06, 2011, 05:42:18 pm »
Hot Dog, the topic title is a little... harsh, but I understand where you're coming from.  I'd give you a +1 and a -1, so looks like I'm not doing anything. :-\

Well, I suggest to begin with .org 40339, then explaining thing about the 40339 byte, then switch to hex, explaining everyone uses hex because it's easier, while explaining hex, then never talk of the decimal form again.
This is a good idea - you can even introduce it with this:

Quote
So you're coding away, and you start noticing this weird thing in other people's ASM programs:
Code: [Select]
.org $9D95...and you're wondering - WHAT IS THIS WEIRD THING? WHAT AM I DOING WRONG?
Fortunately, you're doing nothing wrong - it's just .org $9D95 is the same as .org 40339! :)
This will definitely clear up any ASM beginner confusion :D
This is the way that I'd do it. ;)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: For the last time, I am NOT going to use $9D95 in my early ASM lessons
« Reply #14 on: March 09, 2011, 03:35:22 am »
Well to be honest I negated one of the vote, since I felt it was kinda rude, especially if someone never asked before and is new, but I don't feel it deserves under +1 so if it was 0 I would probably have uprated it.

Personally it's your tutorials so you can do what you want with them. I agree with Juju's and Alberthro's idea, though. It might clear things up. If you use .org 40339, simply explain that other tutorials might use $9D95, but that's it's basically the same, just in hex.