General Chat Thread 3: This Thread Transcends Titles

Discussion in 'General discussion' started by hulgi, Jun 21, 2011.

  1. Birdbirdbirdie

    Birdbirdbirdie Sorry, I only date pigeons.

    Cutie Mark:
    Joined:
    Feb 21, 2013
    Messages:
    1,150
    Bro hoofs Received:
    1
    Location:
    Denmark
    Aaaaaaaand saved.
     
  2. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson
    [​IMG]

    You jacking my gifs yo?
     
  3. Hero Mode

    Hero Mode I like Rarity, that is all

    Cutie Mark:
    Joined:
    Aug 5, 2012
    Messages:
    5,704
    Bro hoofs Received:
    11
    Occupation:
    Currently unemployed
    Location:
    Ponyville
    Echoax you are hillarious.
     
  4. Birdbirdbirdie

    Birdbirdbirdie Sorry, I only date pigeons.

    Cutie Mark:
    Joined:
    Feb 21, 2013
    Messages:
    1,150
    Bro hoofs Received:
    1
    Location:
    Denmark
    I'm opressing you by appropriating your gifs.
     
  5. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson
    Check your privilege.

    On a different note, I just noticed I left something sit on my floor all night long. I hope no one noticed it or I will have an awkward time explaining it.
     
  6. Birdbirdbirdie

    Birdbirdbirdie Sorry, I only date pigeons.

    Cutie Mark:
    Joined:
    Feb 21, 2013
    Messages:
    1,150
    Bro hoofs Received:
    1
    Location:
    Denmark
    ... I can only imagine what thatmight be.
     
  7. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson
    Knowledge gained.

    Be more careful when you've had little sleep for 2 days. You will make careless mistakes.
     
  8. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Bro hoofs Received:
    273
    I can do more than imagine, because I know what it is :p

    - - Auto Merge - -

    also, really happy right now. made a breakthrough in debugging my stupid code.
     
  9. Birdbirdbirdie

    Birdbirdbirdie Sorry, I only date pigeons.

    Cutie Mark:
    Joined:
    Feb 21, 2013
    Messages:
    1,150
    Bro hoofs Received:
    1
    Location:
    Denmark
    Tell meeee! I promise I will stop opressing you with my white cis privileges D:
    Is it Xan?

    And congrats Xan, you get a debugging cookie. Now do the compiling shake!
     
  10. Hero Mode

    Hero Mode I like Rarity, that is all

    Cutie Mark:
    Joined:
    Aug 5, 2012
    Messages:
    5,704
    Bro hoofs Received:
    11
    Occupation:
    Currently unemployed
    Location:
    Ponyville
    Girls being weird huh ok
     
  11. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Bro hoofs Received:
    273
    yes, I sat on his floor all night long. I was lonely and needed hugs :(

    okeeee.
    *sends to uni through ssh*
    *compiles and links*
    *brings back*
    YAY! I win.
     
  12. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson
    Xan has all knowledge.


    And yAy for breakthroughs
     
  13. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Bro hoofs Received:
    273
    huehue, I r teh smrtz


    aaaaaaand it passed the marking program. I am very relieved. considering me and a mate spent hours on his program trying to get it to work but to no avail.

    Code:
    .text.global main
    main:
          addi $1, $0, 1         #initialize the register that will be used to switch between serial ports
    receiveCheck:
        xori $1, $1, 1         #changes the value of register 1 between 1 or 0
        xori $5, $1, 1         #gets the opposite value of the inputted serial port
        lw $2, currentSerial($1)     #get the memory address of the selected serial port
        lw $3, 0x3($2)        #grabs the status register
        andi $3, $3, 1        #checks to see if the Receive Data Ready bit is empty
        beqz $3, receiveCheck    #if its not ready to take a value, loop
        
        lw $4, 1($2)        #if it is, grab the value thats being held
    
    
    transmitCheck:
        lw $9, currentSerial($5)     #gets the memory address of the opposite serial port
        lw $6, 0x3($9)        #gets the status register for tht port
        andi $6, $6, 2        #checks to see if the Transmit Data Ready bit is empty
        beqz $6, transmitCheck     #if its not ready to send, loop
        
        
        j toupper            #if it is, jump to the upper/lower case algorithm
    output:
        sw $4, 0($9)        #displays the typed character in the necessary port
        
    j main                #loop back to the beginning
        
    toupper:
          sgti $7, $4, 96        #checks to see if its above the lower boundary of lower case letters
          slti $8, $4, 123        #checks to see if its above the higher boundary of upper case letters
          and $7, $7, $8        #compares the boundaries to see if the value is between them
          beqz $7, tolower        #if its outside the boundaries, try the lower case checker
          subi $4, $4, 32        #reduce the value to the lower case form
          j output            #jump back to output the value
          
    tolower:
          andi $10, $2, 0x01000    #compares the value of the serial port is used 
          bnez $10, output        #if its the VT320 Terminal, just output
          sgti $10, $4, 64        #checks to see if its above the lower boundary of upper case letters
          slti $11, $4, 91        #checks to see if its above the higher boundary of upper case letters
          and $10, $10, $11        #compares the boundaries to see if the value is between them
          beqz $10, output        #if its outside the boundaries, output as is
          addi $4, $4, 32        #if its inside, change the value to its lower case form
          j output          #jump to output the value
      
    .data    
    currentSerial:
        .word 0x70000
        .word 0x71000
     
  14. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson

    Not gonna lie.

    I literally understand none of that. Therefor it's magic, which makes Xan a wizard.
     
  15. Birdbirdbirdie

    Birdbirdbirdie Sorry, I only date pigeons.

    Cutie Mark:
    Joined:
    Feb 21, 2013
    Messages:
    1,150
    Bro hoofs Received:
    1
    Location:
    Denmark
    That's hot.
     
  16. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson
    I will pay a smiley face to the person that explains it to me.
     
  17. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Bro hoofs Received:
    273
    thats what my comments are for :D
    or at least they're supposed to be


    [​IMG]

    - - Auto Merge - -

    Is a video that may never actually be made suffice?
     
  18. NotWhatWeExpected

    NotWhatWeExpected Today is tomorrow New Zealand
    Community Moderator Veteran

    Cutie Mark:
    Joined:
    Mar 22, 2012
    Messages:
    3,330
    Bro hoofs Received:
    60
    Gender:
    Male
    Occupation:
    Unemployed
    Location:
    Kansas
    It's actually explained in the extensive comments Xan wrote out.

    [​IMG]

    Yay comments~
     
  19. Echoax

    Echoax Greed Probably
    Wizard

    Cutie Mark:
    Joined:
    Jul 5, 2011
    Messages:
    20,506
    Bro hoofs Received:
    2
    Location:
    Kenithson
    I dunno, as far as I'm going to guess it's a cash register.

    Half smiley


    [​IMG]
     
  20. Xaniith

    Xaniith Princess of the Forum
    Old-Timer

    Joined:
    Dec 20, 2011
    Messages:
    10,717
    Bro hoofs Received:
    273
    I will treasure it always.

    Write a program that combines the functionality of both programs in questions 5 and 6
    simultaneously. That is, the program should output uppercase versions of the characters typed
    on the VT320 terminal to the Linux machine, while also outputting switched case letters typed on
    the Linux machine to the VT320 terminal. To achieve this, you’ll need a loop that repeatedly
    polls each serial device in turn to see if a character has been received and if so, modifies and
    outputs that character as appropriate.
     

Share This Page