aboutsummaryrefslogtreecommitdiffstats
path: root/EE3102Testing.X/spies046_lab6_asm_v001.s
diff options
context:
space:
mode:
Diffstat (limited to 'EE3102Testing.X/spies046_lab6_asm_v001.s')
-rw-r--r--EE3102Testing.X/spies046_lab6_asm_v001.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/EE3102Testing.X/spies046_lab6_asm_v001.s b/EE3102Testing.X/spies046_lab6_asm_v001.s
new file mode 100644
index 0000000..4f0b8bc
--- /dev/null
+++ b/EE3102Testing.X/spies046_lab6_asm_v001.s
@@ -0,0 +1,23 @@
+.include "xc.inc"
+
+.text ;BP (put the following data in ROM(program memory))
+.global _mbs_wait_100us, _mbs_wait_1ms
+
+
+_mbs_wait_100us: ;100us delay
+
+ clr LATA;
+ repeat #1593
+ nop
+ return
+
+_mbs_wait_1ms: ;1ms delay
+
+ repeat #15993
+ nop
+ return
+
+
+
+
+