Proposal for a sticky of exercises for N00bZ

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Make a sticky thread with exercises for noobs?

PLEASE OH PLLLLEASE OH PLEASE DO!!!
6
50%
Pssh, shut up N00b!!!
6
50%
 
Total votes: 12

Celius
Posts: 2159
Joined: Sun Jun 05, 2005 2:04 pm
Location: Minneapolis, Minnesota, United States
Contact:

Post by Celius »

Oh yeah, I forgot about those.
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

i donate the usage of the gif89a version of this poster for NESdev's newbie survival guide thread.
(Provided that it is unmodified and no derivatives are made.)

Image
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
User avatar
never-obsolete
Posts: 403
Joined: Wed Sep 07, 2005 9:55 am
Location: Phoenix, AZ
Contact:

Post by never-obsolete »

i thought i understood boolean logic until i saw that.
. That's just like, your opinion, man .
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

never-obsolete wrote:i thought i understood boolean logic until i saw that.
i guess what you knew is obsolete :P
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
atari2600a
Posts: 324
Joined: Fri Jun 29, 2007 10:25 pm
Location: Earth, Milkyway Galaxy, The Universe, M-Theory
Contact:

Post by atari2600a »

It doesn't matter, the chart is probably too high-level for anything useful to teach to n00bs here. Try finding something w/ just the 6502 instruction set & more along the lines of something like this:


10
01
11
Last edited by atari2600a on Wed Dec 12, 2007 1:14 pm, edited 1 time in total.

Code: Select all

          *=$0000
loop      JMP loop
          .eof
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

That has to be the craziest diagram I've ever seen.

This is what people need to know:

NOT 0 = 1
NOT 1 = 0

0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1

0 OR 0 = 0
0 OR 1 = 1
1 OR 0 = 1
1 OR 1 = 1

0 XOR 0 = 0
0 XOR 1 = 1
1 XOR 0 = 1
1 XOR 1 = 0

NAND = AND with inverted (NOT) output
NOR = OR with inverted output
XNOR = XOR with inverted output

If you're going to do digital design, then you should learn boolean algebra, but the above is all that's really necessary for bit masking.
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

atari2600a wrote:It doesn't matter, the chart is probably too high-level for anything useful to teach to n00bs here. Try finding something w/ just the 6502 instruction set & more along the lines of something like this:


10
01
11
the chart is simple venn diagrams numbered by their binary truth table with ascii-based engineering notation for the logic gates using just OR/NOT/AND.

it's as low level as its going to get.

i used to teach third graders using the original version of that chart using decals of each entry fused to the vertices of a physical hypercube i built. and they understood it fine. the complete newbies here seem to understand my chart while the self-hyped gurus such as yourself don't understand it at all. obviously you traded intuition for de-education, impo.


de-education btw is the united states public schools common practice of telling students conceptualization they intuitively put together on their own from course work is baseless and worthless wasted time, due to not being useful for the limited set of information in the task at hand, the teachers or the course normally not knowing how to intuitively put such conceptualization together on their own as they were also taught by their own teachers one can only learn by being reliant on the information published by others.

such practices have led to the united states producing most of the stupidest adults in all of the world, having even worse self-reliance than most children in even the most devastated of third world countries.

just like the student witness on the underlying realities based fictional television comedy Boston Legal claimed the other day. Most US Americans do not even understand the simple survival instinct that direction of north-west is obvious when one knows the relative positions of the sun, moon, or stars.
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

MediaPlague.com :: Boolean Beakers Posters

0, 1, 2 input "Boolean Beakers" overview thumbnail
Image

0 input "Boolean Beakers" poster
Image

1 input "Boolean Beakers" poster
Image

2 input "Boolean Beakers" poster
Image

I grant NESdev permission to use these copyrighted images in their unmodified gif89a condition for the NESdev Newbie survival guide, however no derivative works shall be created.
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
User avatar
Laserbeak43
Posts: 188
Joined: Fri Sep 21, 2007 4:31 pm
Contact:

Post by Laserbeak43 »

i must be stupider than a 3rd grader cause as soon as i think it makes sense, something about it proves me wrong.
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

Laserbeak43 wrote:i must be stupider than a 3rd grader cause as soon as i think it makes sense, something about it proves me wrong.
you must rely on intuition.

notice the overlapping layout of the 3 posters.

to grok, takes time and patience.

I haven't slept since Tuesday morning/afternoon. Amazing that I am still pretty lucid eh? Consuming raw garlic cloves burns worse than hot pepper seeds, however it isn't a burn that sticks to your tongue.
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
atari2600a
Posts: 324
Joined: Fri Jun 29, 2007 10:25 pm
Location: Earth, Milkyway Galaxy, The Universe, M-Theory
Contact:

Post by atari2600a »

What drugs are you on?

Code: Select all

          *=$0000
loop      JMP loop
          .eof
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg »

I finally understand this table!. Each square covers a different logic function, of the 16 possible functions involving two boolean inputs (including ones which don't even examine the inputs). The result is shown in two ways, graphically and as a binary value. The function is also expressed in two ways, as a named binary operator and as an expression involving the common operators ! (NOT), | (OR), & (AND), and ^ (XOR).

Graphically, it's fairly simple. There are two fruits with some overlap, and a background. The left (apple) represents A, the right (orange) B. This forms four regions: neither A nor B (the water background), A only (the non-overlapped part of the apple), B only (the non-overlapped part of the orange), and A and B (the overlapping part). Each of these regions can be either colored or outlined; when colored, the function is true in this case, otherwise it's false.

The four bit binary value is the least obvious. It represents the same information as the image. The bits correspond to the following inputs being true: AB, A, B, (none). So with OR you get 1110 (true as long as either A or B is true), with AND you get 1000 (true only when both A and B are true).

To summarize each function (sorry, challenge not included):

Code: Select all

1 1 0 0  A   Inputs
1 0 1 0  B
--------------------
0 0 0 0  FALSE
0 0 0 1  NOR
0 0 1 0  JUST B
0 0 1 1  NOT A
0 1 0 0  JUST A
0 1 0 1  NOT B
0 1 1 0  A XOR  B
0 1 1 1  A NAND B
1 0 0 0  A AND  B
1 0 0 1  A XNOR B
1 0 1 0  B
1 0 1 1  A IMP  B
1 1 0 0  A
1 1 0 1  A LIMP B
1 1 1 0  A OR   B
1 1 1 1  TRUE
Celius
Posts: 2159
Joined: Sun Jun 05, 2005 2:04 pm
Location: Minneapolis, Minnesota, United States
Contact:

Post by Celius »

jargon wrote:
Laserbeak43 wrote:i must be stupider than a 3rd grader cause as soon as i think it makes sense, something about it proves me wrong.
you must rely on intuition.

notice the overlapping layout of the 3 posters.

to grok, takes time and patience.

I haven't slept since Tuesday morning/afternoon. Amazing that I am still pretty lucid eh? Consuming raw garlic cloves burns worse than hot pepper seeds, however it isn't a burn that sticks to your tongue.
I've tasted raw garlic cloves before. You're right, they burn worse than hot pepper seeds. I was once cooking, and I cut up some garlic. I thought I'd just try a peice of it. It was so sick. No wonder vampires are allergic to it.

By the way, I need to keep looking at your poster you've displayed. I don't even understand it. I don't know if someone who's new to the NESdev scene will.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

I also can't seem to understand the poster, and I've been dealing with boolean logic for a long while now... maybe if I tried harder, but I don't want to. =)

I don't think it's very newbie-friendly either.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Here's how I understand it:
  • Iff a bin has water in it, the function is true when a is false and b is false.
  • Iff a bin has apple in it, the function is true when a is true and b is false.
  • Iff a bin has orange in it, the function is true when a is false and b is true.
  • Iff a bin has plum in it, the function is true when a is true and b is true.
For example, function "a OR b":
  • a false, b false: result false, no water
  • a true, b false: result true, apple
  • a false, b true: result true, orange
  • a true, b true: result true, plum
Post Reply