1. |
Download the following ZIP file: |
|
gcc_example1 |
2. |
Extract the contents of the ZIP file to a
new folder |
|
Remember the name and location of the folder, |
|
this
will be referred to as the project folder |
|
Tip: it is
convenient to keep the path to the project
folder short, |
|
here
we will use c:\gcc |
3. |
Check
the contents of the project folder - there should
be 3
files: |
|
example1.s |
GCC
Source File |
build.sh |
Script File |
clean.sh |
Script
File |
|
4. |
Sign in to
Linux |
5. |
Type: cd /mnt/c/gcc |
6. |
Type: ls |
|
Linux OS
will list the 3 files - confirm before
continuing |
7. |
Type:
'dot'+'slash'+'build.sh' i.e. ./build.sh |
|
In the
Windows project folder there will now be a an
example1.srec file |
8. |
Open the
example1.srec file using Windows Notepad |
9. |
Copy ALL
the text to the Windows Clipboard |
10. |
Start the
Mega-680x0 Computer System |
11. |
At the
SYS> prompt type: LO |
12. |
Paste the
copied text into the Console Window |
|
The
Mega-680x0 receives and processes the S-Record
formatted binary file, |
|
when
reception is complete, the Mega-680x0 will
accept the
next command |
13. |
At the
SYS> prompt type: G1
or GD
100000 to run the program |