ASSEMBLY LANGUAGE
Assembly language is a low-level programming language - it is closer to machine code (binary) than high-level programming languages like Python.
Assembly language uses mnemonics (abbreviations of commands) to signify instructions, for example input is written as INP and output is written as OUT.
The commands you need to know are:
Assembly language uses mnemonics (abbreviations of commands) to signify instructions, for example input is written as INP and output is written as OUT.
The commands you need to know are:
INP Input
OUT Output
STA Store
LDA Load
ADD Add
SUB Subtract
BRA Branch
DAT Data definition
Example assembly language program to input two numbers, add them together and output the result:
INP
STA var
INP
ADD var
OUT
HLT
OUT Output
STA Store
LDA Load
ADD Add
SUB Subtract
BRA Branch
DAT Data definition
Example assembly language program to input two numbers, add them together and output the result:
INP
STA var
INP
ADD var
OUT
HLT
GREENFOOT - download this Greenfoot project and practise the skills that you have learnt in class. Remember to use your flash cards to revise the code needed!
You will need to:
(a) Populate the world with an umbrella, sun and at least two instances of waterDrop.
(b) Edit the waterDrop and sun objects so that they turn and move at random.
(c) Edit the umbrella object so that it moves at an appropriate speed in the direction of the arrow keys when pressed.
(d) Edit the umbrella object so that it “catches” a waterDrop when they collide (removes the waterDrop from the world).
(e) Add a sound which will play every time the umbrella “catches” a waterDrop.
(f) Add a counter. Edit the code so that the counter displays how many waterDrops have been “caught”.
(g) Edit the code so that the counter loses a point (1 point is deducted) if the sun collides with a waterDrop.
(h) Save your completed world as finalDrop8.
GREAT NEWS! There are now a series of videos that show you how to complete the Greenfoot tasks in the Component 2 exam. There are 2 particularly useful videos on creating a counter to keep score (based on the WJECDrop8 project from June 2018): You can download the WJECDrop8 project and practise the skills you have learnt in class.
Remember to use your FLASH CARDS to revise the code needed!
You will need to:
(a) Populate the world with an umbrella, sun and at least two instances of waterDrop.
(b) Edit the waterDrop and sun objects so that they turn and move at random.
(c) Edit the umbrella object so that it moves at an appropriate speed in the direction of the arrow keys when pressed.
(d) Edit the umbrella object so that it “catches” a waterDrop when they collide (removes the waterDrop from the world).
(e) Add a sound which will play every time the umbrella “catches” a waterDrop.
(f) Add a counter. Edit the code so that the counter displays how many waterDrops have been “caught”.
(g) Edit the code so that the counter loses a point (1 point is deducted) if the sun collides with a waterDrop.
(h) Save your completed world as finalDrop8.
GREAT NEWS! There are now a series of videos that show you how to complete the Greenfoot tasks in the Component 2 exam. There are 2 particularly useful videos on creating a counter to keep score (based on the WJECDrop8 project from June 2018): You can download the WJECDrop8 project and practise the skills you have learnt in class.
Remember to use your FLASH CARDS to revise the code needed!
![](http://www.weebly.com/weebly/images/file_icons/pdf.png)
flash_cards_revision_-_add_move_and_eat.pdf | |
File Size: | 352 kb |
File Type: |
HTML - try creating the webpage below using HTML code.
Using Notepad, insert the HTML tags that would be needed to display the content and formatting shown.
The image file you require is called firewall.jpg
The page title should be set to Cybersecurity Briefing.
Save your new web page as finalAdvert.txt
Make sure you test your solution as an HTML page to ensure it works... remember to use SAVE AS, then change the file type to 'All Files' and put .html at the end of the filename.
The image file you require is called firewall.jpg
The page title should be set to Cybersecurity Briefing.
Save your new web page as finalAdvert.txt
Make sure you test your solution as an HTML page to ensure it works... remember to use SAVE AS, then change the file type to 'All Files' and put .html at the end of the filename.
Get help from the HTML example below - all of the code that you need can be seen in an example of a DIFFERENT webpage seen below. Refer to this when you get stuck!
<blockquote>To be or not to be</blockquote> - this tag would indent "To be or not to be" from the right and left margins.
MORE TO COME SO KEEP CHECKING FOR UPDATES...