Author Topic: (Programmers/Coders) NEED HELP WITH CODE.. asap!  (Read 10323 times)

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #15 on: April 28, 2006, 12:42:16 PM »
OK well what have you got so far, for problem 2?  :)

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #16 on: April 28, 2006, 12:45:26 PM »
honestly? ..nothing, all I have done are the pdl and flowchart, I have no idea where to start.. I'm referencing http://www.xs4all.nl/~smit/asm01001.htm and it's not really helping.
« Last Edit: April 28, 2006, 08:51:31 PM by [N]auTiCa^K][L^ »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #17 on: April 28, 2006, 12:56:55 PM »
Hmm, well that link is for intel x86 assembler, so... completely different instruction set.

I'd recommend Appendix A from:
http://www.freescale.com/files/microcontrollers/doc/ref_manual/M68HC11RM.pdf

Well at the very least, you can start by defining your data set of roughly 20 to 25 numbers, containing at least one $00 and one $FE and ending in $FF.



  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #18 on: April 28, 2006, 01:01:17 PM »
Ok.. looking it over now, I defined the values now what to do after that.. I'm thinking...

I can't stop looking at the time lol, noooooo
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #19 on: April 28, 2006, 01:12:27 PM »
well times up.. I have to pack it up and get ready to head out.. if you can give me something in the next 15 or 20 mins while I get ready that would be awesome, other than that I'm pretty much screwed.

I don't have much at all, only pseudocode and flowchart but the code was the big part.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #20 on: April 28, 2006, 01:13:52 PM »
Basically, you're going to need to get the two current adjcent data values to compare:

LOOP            LDAA 0,X
                    LDBB 1,X

Then you need to check for the end of the list

                    CMPB #$ff
                    BEQ   ENDOFLIST

Then you need to see if the data values need to be swapped

                    CBA
                    BLT   NEEDSWAP
                    INX
                    BRA  LOOP

To swap, he requires you to push values on the stack and call a subroutine

NEEDSWAP   PSHA
                    PSHB
                    BSR DOSWAP
                    BRA LOOP

The swap subroutine has to pop values back off the stack
It also needs to set a flag indicating it did work, so you know you'll need at least one more pass on the sort

DOSWAP      PULB
                   PULA
                   STAA  1,X
                   STAB  0,X
                   LDAA  #1
                   STAA  SWAPFLAG
                   
You need to clear SWAPFLAG before each pass through the data, then check swapflag at ENDOFLIST, to see whether you need to make another pass...


Regards,

quadz


  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #21 on: April 28, 2006, 01:27:38 PM »
wow, thank you.

I honestly don't know how to thank you enough, I've been at this all last night 'til 5am, and this morning 'til now and it probably took you a few mins to do. If my instructor knew how to actually explain anything I wouldn't have had so much trouble, I've been through Unix, C, C++, VB.. and others without a problem.

Thank you!
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #22 on: April 28, 2006, 01:39:30 PM »
You're welcome.  BTW, the logic I posted above has a bug, as I forgot to INX before the BRA LOOP in NEEDSWAP.  :-[
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [BTF]n0ctuary

  • Swanky Member
  • *****
  • Posts: 586
  • METAL IST KRIEG
    • View Profile
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #23 on: April 28, 2006, 06:13:39 PM »
uh oh. Hope he caught it  :ubershock:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Another hotel we can burn,
Another screw, another turn,
Another Europe map to learn,
Another truckstop on the way, Another game I learn to play, Another word I learn to say, Another bloody cus

Offline Om3ga

  • Opulent Member
  • *
  • Posts: 2649
  • such society do exist.
    • View Profile
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #24 on: April 28, 2006, 06:17:57 PM »
WoW!

console scores! A+!

teach me  :peace:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Dallas/Fort Worth, here i cum.

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #25 on: April 28, 2006, 07:32:44 PM »
Nope I didn't catch it.. was way to much in a hurry, oh well.. as long as I have something is what matters heh
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline [BTF]Sigma

  • Phenomenally Prodigious Member
  • **
  • Posts: 3059
    • View Profile
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #26 on: April 28, 2006, 11:09:53 PM »
Ok ppl take note here:


Console is a person who:
  • Has the power to help others
  • Utilizes such power to help others
  • Asks for nothing in return for helping others


Console/Quadz

I am elated to E-Meet someone like you. You are a model of how our global society should work.




I mean this sincerely.
(as Ad^m's Great Granpappy might have said: Good FormChap, what? You have pwnd my view on society b4 teaTime.)
« Last Edit: April 28, 2006, 11:11:28 PM by Sigma »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [BTF]Defiant!

  • Carpal Tunnel Member
  • ******
  • Posts: 1502
    • View Profile
    • Quake 2 LAN party July-August 2007
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #27 on: April 29, 2006, 01:13:22 AM »

Yes, Quadz is extraordinary as you mention.  Perhaps sometime there will be an opportunity to repay his favors - and all the admins.



Ramblings..

On the surface, the relative anonymity of the net wipes away the boundaries of age, gender, race, income, etc.. this can lead people to act like roving jerks (who would know?).  But, it also highlights people who build a positive reputation and trust. 

Years ago people would have thought it silly to think that anyone would be able to track some offhand comment mentioned in a quake server.  Now games are routinely logged on IRC and multi-modal searches can relate people to aliases.  I think this implies that reputation will continue to become MORE important on the net.  There will, hopefully, always be anonymity; but, people's desire for a richer, personal presence will make reputation more important.  These social networks of "I trust him because he does YYZ online", I think will become more and more real.

Def
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Next Event: http://www.quakecon.org/  Fall 2014
You missed the Quake 2 LAN party at http://athenslanparty.pbwiki.com/

Offline Om3ga

  • Opulent Member
  • *
  • Posts: 2649
  • such society do exist.
    • View Profile
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #28 on: April 29, 2006, 09:25:26 AM »
Ok ppl take note here:


Console/Quadz

I am elated to E-Meet someone like you. You are a model of how our global society should work.

I mean this sincerely.
(as Ad^m's Great Granpappy might have said: Good FormChap, what? You have pwnd my view on society b4 teaTime.)

 :lolsign:

Quote
Console is a person who:
  • Has the power to help others
  • Utilizes such power to help others
  • Asks for nothing in return for helping others

 yeah right!

Console is a dude who:

Lives in my attic, with computers that i brought for him

has the energy to eat up my food, and

asks for no work around the house in return
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Dallas/Fort Worth, here i cum.

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: (Programmers/Coders) NEED HELP WITH CODE.. asap!
« Reply #29 on: April 29, 2006, 03:03:34 PM »
Quote from: {SX}Om3ga.S on April 29, 2006, 09:25:26 AM
Quote from: {SX}Om3ga.S on April 29, 2006, 09:25:26 AM
Console is a dude who:

Lives in my attic, with computers that i brought for him

has the energy to eat up my food, and

asks for no work around the house in return

I swear I like q2, though...   :-[


:rockon:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.
 

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM
 

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.
 

Costigan_Q2

October 09, 2024, 01:35:05 PM
Et tu rikwad?

Please don't feed the degenerate lies of a sexually-perverted devil-worshipping barking dog like Focalor.

Show 50 latest
Welcome, Guest. Please login or register.
November 10, 2024, 02:54:31 PM

Login with username, password and session length