Project 1999

Go Back   Project 1999 > General Community > Rants and Flames

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 06-14-2013, 02:46 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

hello mr neumann I wrote a program to emulate your architecture
  #2  
Old 06-14-2013, 02:47 PM
JohnVonNeumann JohnVonNeumann is offline
Decaying Skeleton

JohnVonNeumann's Avatar

Join Date: Jun 2013
Posts: 0
Default

tell me more
  #3  
Old 06-14-2013, 02:53 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

[You must be logged in to view images. Log in or Register.]

Code:
#include <iostream>
#include <stdlib.h>
#include <string>

#include "VonEmu.h"

int main(int argc, char* argv[])
{
    std::string inputBuffer;
    VonEmu* von = new VonEmu();

    while (getline(std::cin, inputBuffer))  // read redirected input file line b
y line
        von->feedInput(atoi(inputBuffer.c_str()));  // add it to the emulated me
mory

    // use do-while to print out initial values
    do std::cout << *von << std::endl;
    while (von->runProgram());     // repeat forever until terminates

    delete von;
    return 0;
}
Code:
###############################################################*/
class VonEmu
{

    public:
        VonEmu();

        enum Opcode { Load = 1, Store, Add, Subtract, Branch, Stop };

        // overload << to cout the object's memory, PC, ACC, etc.
        friend std::ostream& operator<<(std::ostream &os, const VonEmu &v);

        bool feedInput(int input);
        bool runProgram(); // executes single next instruction pointed to by _pr
ogramCounter

    protected:
        int _accumulator;
        int _programCounter;

        int _memory[VONEMU_MAX_MEMORY];

        int _inputOffset;  // offset representing the current memory location to
 store data in
        bool _inputDataFlag; // true if storing data, false if storing to locati
ons

    private:
        bool _executeInstruction(int instructionOpcode, int instructionData);
};
  #4  
Old 06-14-2013, 04:19 PM
Nirgon Nirgon is offline
Banned


Join Date: Jun 2011
Location: Ruins of Old Paineel
Posts: 14,480
Default

Thought you knew how to forumquest pal. Can't be fuckin' around in bugs/guild recruitment.
  #5  
Old 06-14-2013, 05:34 PM
Ahldagor Ahldagor is offline
Planar Protector

Ahldagor's Avatar

Join Date: Jun 2012
Location: Houston, TX
Posts: 4,556
Default

"proper place" kind of thing...really? i get it. just weird to me.
__________________
  #6  
Old 06-14-2013, 05:44 PM
Rellapse19 Rellapse19 is offline
Banned


Join Date: Jun 2013
Posts: 5
Default

lol got banned for having that fat girl gif ...people sure are sensitive when it comes to fat smelly jelly rolls around here
  #7  
Old 06-14-2013, 06:00 PM
Ahldagor Ahldagor is offline
Planar Protector

Ahldagor's Avatar

Join Date: Jun 2012
Location: Houston, TX
Posts: 4,556
Default

Quote:
Originally Posted by Rellapse19 [You must be logged in to view images. Log in or Register.]
lol got banned for having that fat girl gif ...people sure are sensitive when it comes to fat smelly jelly rolls around here
that gif was funny
__________________
  #8  
Old 06-15-2013, 06:50 AM
Alawen Alawen is offline
Kobold

Alawen's Avatar

Join Date: Jun 2012
Posts: 176
Default

Quote:
Originally Posted by Ahldagor [You must be logged in to view images. Log in or Register.]
that gif was funny
I'm kind of glad it's gone. I was starting to think that maybe she'd be fun in the sack.
  #9  
Old 06-14-2013, 06:53 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

agreed
  #10  
Old 06-14-2013, 10:05 PM
Tasslehofp99 Tasslehofp99 is offline
Planar Protector


Join Date: Apr 2011
Posts: 2,314
Default

lol@ this thread, wtf
__________________
-Aftermath-
Tasslehof - 60 Druid
Barlow - 60 monk
Blueberrii - 60 Mage
Gigglepurr - 60 Shaman
Kids - 60 Rogue
Fornfamnad - 60 Cleric
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:31 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.