
Challenging Programming Game - Whose Line of Code is it Anyway?
"Join the fun with Whose Line of Code is it Anyway, a programming game using the Little Man Computer! Create a sequence of instructions, compile, and run to score points. Follow rules and compete for victory in this engaging coding challenge."
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
GCE Computing Whose Line of Code is it Anyway? A Programming Game using the Little Man Computer
RULES 1. Shuffle the cards so that each player has the same number 2. One player must lay down a card with an instruction that will start an LMC program 3. The second player then lays down cards that will form the next instruction (this might be a mnemonic plus a label) 4. Play continues until one player completes a working program it must compile and run in the LMC! 5. They score the total points for all of the cards in the program. 6. Shuffle the cards, deal them again and play another round. 7. The winner is the player with the most points after 5 rounds
1 Point 1 Point INP INP Prompt the user to input a value and copy it into the accumulator Prompt the user to input a value and copy it into the accumulator
1 Point 1 Point OUT OUT Output the value from the accumulator Output the value from the accumulator
1 Point 1 Point 1 Point HLT HLT Halt end the program Halt end the program
1 Point 1 Point STA STA Store the value in the accumulator in a memory slot indicated by the line number of the DAT command. Needs a label. Store the value in the accumulator in a memory slot indicated by the line number of the DAT command. Needs a label.
1 Point 1 Point NUM1 NUM1 Label to identify a stored value Label to identify a stored value
1 Point 1 Point LDA LDA Loads a value identified with a label from memory into the accumulator. Loads a value identified with a label from memory into the accumulator.
1 Point 1 Point NUM2 NUM2 Label to identify a stored value Label to identify a stored value
1 Point 1 Point ADD ADD Adds a number stored in memory to the accumulator Adds a number stored in memory to the accumulator
1 Point 1 Point SUB SUB Subtracts a value stored in memory from the accumulator Subtracts a value stored in memory from the accumulator
2 Points 2 Points BRP BRP Branch if the current value is positive Branch if the current value is positive
2 Points 2 Points BRA BRA Branch always Branch always
2 Points 2 Points BRZ BRZ Branch if zero Branch if zero
1 Point 1 Point DAT DAT Store the value in the next available memory slot (mailbox). Used in conjunction with a label to declare variables Store the value in the next available memory slot (mailbox). Used in conjunction with a label to declare variables
1 Point 1 Point NUM1 NUM1 Label to identify a stored value Label to identify a stored value
1 Point 1 Point NUM2 NUM2 Label to identify a stored value Label to identify a stored value
1 Point 1 Point DAT DAT Store the value in the next available memory slot (mailbox). Used in conjunction with a label to declare variables Store the value in the next available memory slot (mailbox). Used in conjunction with a label to declare variables
1 Point 1 Point NUM1 NUM1 Label to identify a stored value Label to identify a stored value
1 Point 1 Point NUM2 NUM2 Label to identify a stored value Label to identify a stored value
1 Point 1 Point INP INP Prompt the user to input a value and copy it into the accumulator Prompt the user to input a value and copy it into the accumulator
1 Point 1 Point INP INP Prompt the user to input a value and copy it into the accumulator Prompt the user to input a value and copy it into the accumulator
1 Point 1 Point OUT OUT Output the value from the accumulator Output the value from the accumulator
1 Point 1 Point HLT HLT Halt end the program Halt end the program