diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2d19a0d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+\lab2barnestr\lab2barnestr Debug.cfg
+\lab2barnestr\LinkerScript.ld
+\lab2barnestr\NUCLEO-F446RE.xml
+\lab2barnestr\.settings\**
+\.metadata
\ No newline at end of file
diff --git a/.metadata/.log b/.metadata/.log
index 29af858..4df8e87 100644
--- a/.metadata/.log
+++ b/.metadata/.log
@@ -1760,3 +1760,35 @@ Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING
!ENTRY org.eclipse.core.resources 4 372 2019-09-25 14:58:55.853
!MESSAGE Resource '/lab1' is not open.
+
+!ENTRY fr.ac6.mcu.debug 4 5012 2019-09-28 19:15:18.266
+!MESSAGE Error in final launch sequence
+!STACK 1
+org.eclipse.core.runtime.CoreException: Failed to execute MI command:
+-target-select remote localhost:3333
+
+Error message from debugger back end:
+localhost:3333: The system tried to join a drive to a directory on a joined drive.
+ at org.eclipse.cdt.dsf.concurrent.Query.get(Query.java:111)
+ at fr.ac6.mcu.debug.launching.MCUGDBJtagDSFLaunchConfigurationDelegate.launchDebugSession(MCUGDBJtagDSFLaunchConfigurationDelegate.java:248)
+ at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugger(GdbLaunchDelegate.java:101)
+ at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launch(GdbLaunchDelegate.java:90)
+ at fr.ac6.mcu.debug.launching.MCUGDBJtagDSFLaunchConfigurationDelegate.launch(MCUGDBJtagDSFLaunchConfigurationDelegate.java:306)
+ at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
+ at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
+ at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
+ at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
+ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
+Caused by: java.lang.Exception: localhost:3333: The system tried to join a drive to a directory on a joined drive.
+ at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:941)
+ at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:770)
+!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10004 2019-09-28 19:15:18.267
+!MESSAGE Failed to execute MI command:
+-target-select remote localhost:3333
+
+Error message from debugger back end:
+localhost:3333: The system tried to join a drive to a directory on a joined drive.
+!STACK 0
+java.lang.Exception: localhost:3333: The system tried to join a drive to a directory on a joined drive.
+ at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:941)
+ at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:770)
diff --git a/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log b/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log
index 9d770a5..b064fef 100644
--- a/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log
+++ b/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log
@@ -226,3 +226,52 @@ make: Nothing to be done for 'all'.
14:59:00 **** Incremental Build of configuration Debug for project lab2barnestr ****
make all
make: Nothing to be done for 'all'.
+19:15:01 **** Incremental Build of configuration Debug for project lab2barnestr ****
+make all
+Building file: ../src/main.s
+Invoking: MCU GCC Assembler
+C:\Users\barnestr\Documents\CE2801\workspace\lab2barnestr\Debug
+arm-none-eabi-as -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -o "src/main.o" "../src/main.s"
+Finished building: ../src/main.s
+
+Building target: lab2barnestr.elf
+Invoking: MCU GCC Linker
+arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -T"C:\Users\barnestr\Documents\CE2801\workspace\lab2barnestr\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "lab2barnestr.elf" @"objects.list" -lm
+Finished building target: lab2barnestr.elf
+
+make --no-print-directory post-build
+Generating binary and Printing size information:
+arm-none-eabi-objcopy -O binary "lab2barnestr.elf" "lab2barnestr.bin"
+arm-none-eabi-size "lab2barnestr.elf"
+ text data bss dec hex filename
+ 1064 1080 1092 3236 ca4 lab2barnestr.elf
+
+19:15:34 **** Incremental Build of configuration Debug for project lab2barnestr ****
+make all
+make: Nothing to be done for 'all'.
+19:17:12 **** Incremental Build of configuration Debug for project lab2barnestr ****
+make all
+make: Nothing to be done for 'all'.
+19:21:27 **** Incremental Build of configuration Debug for project lab2barnestr ****
+make all
+make: Nothing to be done for 'all'.
+19:37:27 **** Incremental Build of configuration Debug for project lab2barnestr ****
+make all
+Building file: ../src/main.s
+Invoking: MCU GCC Assembler
+C:\Users\barnestr\Documents\CE2801\workspace\lab2barnestr\Debug
+arm-none-eabi-as -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -o "src/main.o" "../src/main.s"
+Finished building: ../src/main.s
+
+Building target: lab2barnestr.elf
+Invoking: MCU GCC Linker
+arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -T"C:\Users\barnestr\Documents\CE2801\workspace\lab2barnestr\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "lab2barnestr.elf" @"objects.list" -lm
+Finished building target: lab2barnestr.elf
+
+make --no-print-directory post-build
+Generating binary and Printing size information:
+arm-none-eabi-objcopy -O binary "lab2barnestr.elf" "lab2barnestr.bin"
+arm-none-eabi-size "lab2barnestr.elf"
+ text data bss dec hex filename
+ 1064 1080 1092 3236 ca4 lab2barnestr.elf
+
diff --git a/.metadata/.plugins/org.eclipse.cdt.ui/lab2barnestr.build.log b/.metadata/.plugins/org.eclipse.cdt.ui/lab2barnestr.build.log
index 16b969c..6aa38fa 100644
--- a/.metadata/.plugins/org.eclipse.cdt.ui/lab2barnestr.build.log
+++ b/.metadata/.plugins/org.eclipse.cdt.ui/lab2barnestr.build.log
@@ -1,6 +1,23 @@
-14:59:00 **** Incremental Build of configuration Debug for project lab2barnestr ****
+19:37:27 **** Incremental Build of configuration Debug for project lab2barnestr ****
make all
-make: Nothing to be done for 'all'.
+Building file: ../src/main.s
+Invoking: MCU GCC Assembler
+C:\Users\barnestr\Documents\CE2801\workspace\lab2barnestr\Debug
+arm-none-eabi-as -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -o "src/main.o" "../src/main.s"
+Finished building: ../src/main.s
+
+Building target: lab2barnestr.elf
+Invoking: MCU GCC Linker
+arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -T"C:\Users\barnestr\Documents\CE2801\workspace\lab2barnestr\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "lab2barnestr.elf" @"objects.list" -lm
+Finished building target: lab2barnestr.elf
+
+make --no-print-directory post-build
+Generating binary and Printing size information:
+arm-none-eabi-objcopy -O binary "lab2barnestr.elf" "lab2barnestr.bin"
+arm-none-eabi-size "lab2barnestr.elf"
+ text data bss dec hex filename
+ 1064 1080 1092 3236 ca4 lab2barnestr.elf
+
-14:59:01 Build Finished (took 632ms)
+19:37:28 Build Finished (took 966ms)
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.markers.snap
index 91d6c54..414a6b3 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.markers.snap and b/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.markers.snap differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.syncinfo.snap
index 91d6c54..414a6b3 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.syncinfo.snap and b/.metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.syncinfo.snap differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.markers.snap
index 91d6c54..414a6b3 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.markers.snap and b/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.markers.snap differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.syncinfo.snap
index 91d6c54..414a6b3 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.syncinfo.snap and b/.metadata/.plugins/org.eclipse.core.resources/.projects/lab2barnestr/.syncinfo.snap differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap
index 91d6c54..414a6b3 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap and b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
index d228849..e07bf05 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/3.snap b/.metadata/.plugins/org.eclipse.core.resources/3.snap
index 89c2efb..24f6efd 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/3.snap and b/.metadata/.plugins/org.eclipse.core.resources/3.snap differ
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
index 9632317..87b5324 100644
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
+++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
@@ -1,7 +1,7 @@
eclipse.preferences.version=1
org.eclipse.debug.ui.MemoryView.orientation=0
org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=\r\n\r\n
-org.eclipse.debug.ui.user_view_bindings=\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
+org.eclipse.debug.ui.user_view_bindings=\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
pref_state_memento.org.eclipse.debug.ui.DebugVieworg.eclipse.debug.ui.DebugView=\r\n
preferredDetailPanes=DefaultDetailPane\:DefaultDetailPane|
preferredTargets=org.eclipse.cdt.debug.ui.toggleCBreakpointTarget,org.eclipse.cdt.debug.ui.toggleCDynamicPrintfTarget\:org.eclipse.cdt.debug.ui.toggleCBreakpointTarget|
diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
index 888998f..3099d62 100644
--- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
+++ b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
@@ -1,9 +1,9 @@
-
-
+
+
activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration
ModelMigrationProcessor.001
-
+
@@ -11,9 +11,9 @@
topLevel
-
-
-
+
+
+
persp.actionSet:org.eclipse.mylyn.doc.actionSet
persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation
@@ -70,36 +70,34 @@
persp.actionSet:org.eclipse.debug.ui.profileActionSet
persp.viewSC:org.eclipse.mylyn.tasks.ui.views.tasks
persp.newWizSC:org.eclipse.mylyn.tasks.ui.wizards.new.repository.task
-
-
- active
- noFocus
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
Debug
-
-
-
-
-
+
+
+
+
+
-
+
persp.actionSet:org.eclipse.mylyn.doc.actionSet
persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation
@@ -139,2893 +137,2957 @@
persp.viewSC:org.eclipse.pde.runtime.LogView
persp.showIn:org.eclipse.egit.ui.RepositoriesView
persp.perspSC:org.eclipse.wst.xml.ui.perspective
-
-
-
-
-
+
+
+
+
+
org.eclipse.e4.primaryNavigationStack
-
-
+ active
+ noFocus
+
+
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
+
org.eclipse.e4.secondaryNavigationStack
-
-
+
+
-
+
org.eclipse.e4.secondaryDataStack
Debug
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
View
categoryTag:Help
-
+
View
categoryTag:General
-
+
ViewMenu
menuContribution:menu
-
+
-
+
View
categoryTag:Help
-
-
+
+
org.eclipse.e4.primaryDataStack
EditorStack
-
-
+
+
Editor
org.eclipse.cdt.ui.editor.asm.AsmEditor
removeOnHide
-
+
menuContribution:popup
popup:#ASMEditorContext
popup:org.eclipse.cdt.ui.editor.asm.AsmEditor.EditorContext
popup:#AbstractTextEditorContext
-
+
menuContribution:popup
popup:#ASMEditorRulerContext
popup:org.eclipse.cdt.ui.editor.asm.AsmEditor.RulerContext
popup:#AbstractTextEditorRulerContext
-
+
+ menuContribution:popup
+ popup:#OverviewRulerContext
+
+
+
+
+ Editor
+ org.eclipse.cdt.ui.editor.asm.AsmEditor
+ removeOnHide
+
+ menuContribution:popup
+ popup:#ASMEditorContext
+ popup:org.eclipse.cdt.ui.editor.asm.AsmEditor.EditorContext
+ popup:#AbstractTextEditorContext
+
+
+ menuContribution:popup
+ popup:#ASMEditorRulerContext
+ popup:org.eclipse.cdt.ui.editor.asm.AsmEditor.RulerContext
+ popup:#AbstractTextEditorRulerContext
+
+
menuContribution:popup
popup:#OverviewRulerContext
-
+
View
categoryTag:General
- active
-
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu
-
+
menuContribution:popup
popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu
-
+
menuContribution:popup
popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu
-
+
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:org.eclipse.ui.views.ProblemView
popup:org.eclipse.ui.ide.MarkersView
-
+
menuContribution:popup
popup:org.eclipse.ui.views.ProblemView
popup:org.eclipse.ui.ide.MarkersView
-
+
menuContribution:popup
popup:org.eclipse.ui.views.ProblemView
popup:org.eclipse.ui.ide.MarkersView
-
+
-
+
View
categoryTag:General
-
+
ViewMenu
menuContribution:menu
-
+
-
+
View
categoryTag:General
-
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:org.eclipse.cdt.ui.CDTGlobalBuildConsole
-
+
menuContribution:popup
popup:org.eclipse.cdt.ui.CDTBuildConsole
-
+
menuContribution:popup
popup:org.eclipse.cdt.ui.CDTGlobalBuildConsole
-
+
menuContribution:popup
popup:org.eclipse.cdt.ui.CDTBuildConsole
-
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.ProcessConsoleType.#ContextMenu
+
+
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:#ASMOutlineContext
-
+
menuContribution:popup
popup:#ASMOutlineContext
-
+
+ menuContribution:popup
+ popup:#ASMOutlineContext
+
+
-
+
View
categoryTag:Make
-
+
View
categoryTag:Mylyn
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
+ menuContribution:popup
+ popup:GdbBasicCliConsole.#ContextMenu
+
+
-
+
View
categoryTag:Debug
-
+ active
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.DebugView
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.DebugView
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.DebugView
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.DebugView
-
+
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.VariableView.detail
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.VariableView
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.VariableView.detail
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.VariableView
-
+
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.VariableView.detail
-
+
menuContribution:popup
popup:org.eclipse.debug.ui.BreakpointView
-
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.VariableView.detail
+
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.BreakpointView
+
+
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.VariableView.detail
+
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.RegisterView
+
+
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.VariableView.detail
+
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.ModuleView
+
+
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
ViewMenu
menuContribution:menu
-
+
+ menuContribution:popup
+ popup:org.eclipse.debug.ui.MemoryView.MemoryBlocksTreeViewPane
+
+
-
-
+
+
toolbarSeparator
-
+
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
-
+
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
toolbarSeparator
-
+
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
toolbarSeparator
-
+
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Opaque
-
-
+
+
Opaque
-
+
Opaque
-
+
Opaque
-
+
Draggable
-
+
toolbarSeparator
-
+
-
+
toolbarSeparator
-
+
-
+
Draggable
-
+
Opaque
-
+
Opaque
-
+
stretch
SHOW_RESTORE_MENU
-
+
Draggable
HIDEABLE
SHOW_RESTORE_MENU
-
-
+
+
stretch
-
+
Draggable
-
+
Draggable
-
-
+
+
TrimStack
Draggable
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
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-
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
platform:cocoa
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
-
+
+
platform:win32
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Editor
-
+
View
categoryTag:Debug
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Make
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:C/C++
-
+
View
categoryTag:General
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Debug
-
+
View
categoryTag:Git
-
+
View
categoryTag:Git
-
+
View
categoryTag:Git
-
+
View
categoryTag:Git
-
+
View
categoryTag:Git
-
+
View
categoryTag:General
-
+
View
categoryTag:Help
-
+
View
categoryTag:Charts
-
+
View
categoryTag:Profiling
-
+
View
categoryTag:Profiling
-
+
View
categoryTag:Profiling
-
+
View
categoryTag:Maven
-
+
View
categoryTag:Maven
-
+
View
categoryTag:Mylyn
-
+
View
categoryTag:Mylyn
-
+
View
categoryTag:Mylyn
-
+
View
categoryTag:Oomph
-
+
View
categoryTag:Connections
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:Remote Systems
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:SVN
-
+
View
categoryTag:SVN
-
+
View
categoryTag:SVN
-
+
View
categoryTag:SVN
-
+
View
categoryTag:SVN
-
+
View
categoryTag:Team
-
+
View
categoryTag:Team
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:LTTng
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:Tracing
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:Help
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:General
-
+
View
categoryTag:XML
-
+
View
categoryTag:XML
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lab2barnestr/Debug/lab2barnestr.elf b/lab2barnestr/Debug/lab2barnestr.elf
index 00e45d1..1582cb5 100644
Binary files a/lab2barnestr/Debug/lab2barnestr.elf and b/lab2barnestr/Debug/lab2barnestr.elf differ
diff --git a/lab2barnestr/Debug/src/main.o b/lab2barnestr/Debug/src/main.o
index 13ad6cc..2ac1475 100644
Binary files a/lab2barnestr/Debug/src/main.o and b/lab2barnestr/Debug/src/main.o differ
diff --git a/lab2barnestr/src/main.s b/lab2barnestr/src/main.s
index 2c3dbd2..e38b692 100644
--- a/lab2barnestr/src/main.s
+++ b/lab2barnestr/src/main.s
@@ -14,8 +14,12 @@
# Base RCC
.equ RCC_BASE, 0x40023800
+ # GPIOB Enable Register
.equ RCC_AHB1ENR, 0x30
+ # GPIOB Enable
.equ RCC_GPIOBEN, 1<<1
+ # Bit Set Reset Register
+ .equ GPIOx_BSRR, 0x18
.equ GPIOB_BASE, 0x40020400
# GPIO Mode Register
@@ -61,7 +65,7 @@ turn_on:
# Wait
bl delay
- # Turn of all lights
+ # Turn off all lights
ldr r2, [r1, #GPIO_ODR]
movw r3, #0xF7E0
orr r2, r2, r3