Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
26 May, 2013, 06:50:53 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: For the last time, I am NOT going to use $9D95 in my early ASM lessons -  (Read 1697 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« on: 06 March, 2011, 23:29:30 »
+3

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.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #1 on: 06 March, 2011, 23:48:15 »
0

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.
Logged

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #2 on: 06 March, 2011, 23:52:24 »
0

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: 06 March, 2011, 23:54:25 by Hot_Dog » Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #3 on: 06 March, 2011, 23:55:43 »
0

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> 
Logged

KermMartian
Editor
LV6 Super Member (Next: 500)
*
Offline Offline

Gender: Male
Last Login: 22 May, 2013, 20:44:01
Date Registered: 27 April, 2010, 23:47:22
Location: NYC
Posts: 399


Total Post Ratings: +184

View Profile WWW
« Reply #4 on: 06 March, 2011, 23:59:36 »
0

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. Smiley No hard feelings that you disagree.
Logged



Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #5 on: 07 March, 2011, 00:00:57 »
0

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. Smiley 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
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

SirCmpwn
Guest
« Reply #6 on: 07 March, 2011, 00:02:36 »
0

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.
Logged
KermMartian
Editor
LV6 Super Member (Next: 500)
*
Offline Offline

Gender: Male
Last Login: 22 May, 2013, 20:44:01
Date Registered: 27 April, 2010, 23:47:22
Location: NYC
Posts: 399


Total Post Ratings: +184

View Profile WWW
« Reply #7 on: 07 March, 2011, 00:03:02 »
0

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.
Logged



Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #8 on: 07 March, 2011, 00:06:47 »
0

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
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

Juju
Evil Fluttershy (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Gender: Male
Last Login: Today at 06:44:36
Date Registered: 17 March, 2010, 07:46:57
Location: Québec, North Equestria
Posts: 4550


Total Post Ratings: +396

View Profile WWW
« Reply #9 on: 07 March, 2011, 00:08:57 »
+2

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.
Logged

LuaIDE
Reuben Quest HD: The PC Remake
Zarmina Project: Play Read
Nspire I/O: Info Download


THEGAME
Spoiler for Other stuff:
Also Yuki "ジュジュ" Kagayaki
Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
Find what P+4zJ means and you get free candy! cc4daa9c4645bd123ed22e385ed701fd
#omnimaga on OmniNet, EFNet and Pesterchum
Omnimaga Owner and Former Administrator
Fan of My Little Jim Bauwens: Losing the Game is Magic
Proud member of POLN - Ponys Oppositing Lol Names
Member of OBEL - Omnimaga Board of the EFnrgelnicshh Language - Office Omnimagois de la Langue FArnagnlçaaiiss
あなたはこのゲームを失った
Spoiler for Old spoileryception stuff:

Spoiler for Coming soon...:
Indefinitely halted [|.........] 10%
OmnomIRC Mobile [||||......] 40% (argh threads >_<)
Spoiler for Current/Past TI-related projects:
The Axe Parser Wiki / Founder and maintainer
Keytar Hero [|||||_____] 50% Engine done, wackiness left to do (Halted)
OmniOS
VVVVVV [||||______] 40% (Made most of the engine, extremely glitchy) (Gave it to Leafy)
░█▀█░█░█░█▀▀░█▀█░█▀█░█▀█░▀█▀░█▀▄
░█▀█░▄▀▄░█▀▀░█▀█░█░█░█░█░░█░░█░█
v0.1.0
░▀░▀░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀▀▀░▀▀░[|||||||||¦] 95ish% (Completed)
tilibs-wii? [._________] 0% (Nope.)
Spoiler for Spoilers:
<!---->
wxWabbitemu Developer
Spoiler for Other Userbars:






<!--Everything done, got 90% Cheesy sudo apt-get install z80asm z80dasm-->
Spoiler for Quote:
We are in 2034. The situation on Earth is catastrophic. The ozone layer has been completely destroyed by the carbonic gas of automobiles, the chemical industries, and the poosh-poosh in little cans. In the end, the earth cooks under the rays of the sun. We must find a planet on which can live 6 billion idiots. The planetary federation turns to the strongest country in the world: Canada. It is Canadian knowledge that has allowed, on October 28, 2034, the launch of the spaceship Romano Fafard, which leaves earth to search the confines of the Universe. Where the hand of man has never set foot.
I hate TI right now
Quote from: jimbauwens
You make me lose the game
Everytime I read your name
Spoiler for The real answer to life, the universe and everything:
Spoiler for Old HTML stuff:
<div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px">Spoiler for This is another spoiler: <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onclick="window.location.replace('http://goo.gl/QMET');"></div><div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none; ">HAHAHA SUCCESSFUL RICKROLL IS SUCCESSFUL</div></div></div><!-- old avatars:
http://fc00.deviantart.net/fs71/f/2011/120/d/f/nepeta_nyan_cat_by_supuru-d3f8tcx.gif
http://th01.deviantart.net/fs70/PRE/i/2011/099/5/b/rainbow_dash_derping_by_moongazeponies-d3dmg7l.png--><!---->
I may or may not be inactive during work hours (9AM to 5PM EST, Monday to Friday), so for any inquiries please leave a message after the beep and I'll answer you when I have time. Beep. Nevermind, I'm on vacation now. Cheesy
alberthrocks
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Last Login: 11 May, 2013, 04:49:27
Date Registered: 01 May, 2010, 16:51:27
Posts: 743

Total Post Ratings: +88

View Profile
« Reply #10 on: 07 March, 2011, 00:12:50 »
+2

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:

1
.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! Smiley
This will definitely clear up any ASM beginner confusion Cheesy
« Last Edit: 07 March, 2011, 00:16:50 by alberthrocks » Logged

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! Sad Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. Smiley

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 Tongue)
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 Tongue)
wxWabbitemu: 40% done (NEED MOAR FEATURES Tongue)

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 Tongue)
Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #11 on: 07 March, 2011, 00:14:43 »
0

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
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #12 on: 07 March, 2011, 00:18:08 »
0

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: 07 March, 2011, 00:18:47 by ralphdspam » Logged

ld a, 0
ld a, a
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 22 May, 2013, 03:10:30
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5687


Total Post Ratings: +360

View Profile
« Reply #13 on: 07 March, 2011, 00:42:18 »
0

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. Undecided

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:

1
.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! Smiley
This will definitely clear up any ASM beginner confusion Cheesy
This is the way that I'd do it. Wink
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:34:24
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50238


Total Post Ratings: +2615

View Profile WWW
« Reply #14 on: 09 March, 2011, 10:35:22 »
0

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.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 1.613 seconds with 32 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.