summaryrefslogtreecommitdiff
path: root/ExamPrepTwo/bin
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2025-02-14 18:20:46 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2025-02-14 18:20:46 -0500
commit7b2d0640e6209539d80e79126d3b05ff8bf88176 (patch)
tree46cd3c6455e37e1654aaf96c753454ecca223fbd /ExamPrepTwo/bin
parentdb27faf84654f0084542536e538044a0458bb554 (diff)
HW4 Finished
Diffstat (limited to 'ExamPrepTwo/bin')
-rw-r--r--ExamPrepTwo/bin/Project.absbin0 -> 2726 bytes
-rw-r--r--ExamPrepTwo/bin/Project.abs.phy2
-rw-r--r--ExamPrepTwo/bin/Project.abs.s195
-rw-r--r--ExamPrepTwo/bin/main.dbg55
4 files changed, 62 insertions, 0 deletions
diff --git a/ExamPrepTwo/bin/Project.abs b/ExamPrepTwo/bin/Project.abs
new file mode 100644
index 0000000..f0db289
--- /dev/null
+++ b/ExamPrepTwo/bin/Project.abs
Binary files differ
diff --git a/ExamPrepTwo/bin/Project.abs.phy b/ExamPrepTwo/bin/Project.abs.phy
new file mode 100644
index 0000000..c781cf8
--- /dev/null
+++ b/ExamPrepTwo/bin/Project.abs.phy
@@ -0,0 +1,2 @@
+S04E0000433A5C55736572735C4A61636F62204D63446F6E6E656C6C5C446F63756D656E74735C434D50454E2D3437322D48575C4578616D5072657054776F5C62696E5C50726F6A6563742E61627398
+S9030000FC
diff --git a/ExamPrepTwo/bin/Project.abs.s19 b/ExamPrepTwo/bin/Project.abs.s19
new file mode 100644
index 0000000..287233e
--- /dev/null
+++ b/ExamPrepTwo/bin/Project.abs.s19
@@ -0,0 +1,5 @@
+S04E0000433A5C55736572735C4A61636F62204D63446F6E6E656C6C5C446F63756D656E74735C434D50454E2D3437322D48575C4578616D5072657054776F5C62696E5C50726F6A6563742E61627398
+S104300000CB
+S12331008646C63C1806A7863CC6BA1806A786C4C6BA1816A78646C6C41816A7F63000B66B
+S108312030004326FD10
+S9030000FC
diff --git a/ExamPrepTwo/bin/main.dbg b/ExamPrepTwo/bin/main.dbg
new file mode 100644
index 0000000..f284c7d
--- /dev/null
+++ b/ExamPrepTwo/bin/main.dbg
@@ -0,0 +1,55 @@
+**************************************************************************
+* Parameter Declearation Section
+*
+* Export Symbols
+ xdef pgstart ; export 'pgstart' symbol
+ absentry pgstart ; for assembly entry point
+
+* Symbols and Macros
+PORTA equ $0000 ; i/o port A addresses
+DDRA equ $0002 ; data direction register for PORTA
+PORTB equ $0001 ; i/o port B addresses
+DDRB equ $0003 ; data direction register for PORTB
+
+**************************************************************************
+* Data Section: address used [ $3000 to $30FF ] RAM Memory
+*
+ org $3000 ; Reserved RAM memory starting address
+ ; for Data for CMPEN 472 class
+num dc.b 0
+
+*
+**************************************************************************
+* Program Section: address used [ $3100 to $3FFF ] RAM Memory
+*
+ org $3100 ; Program start address, in RAM
+pgstart ldaa #70
+ ldab #60
+ aba
+ nop
+
+ ldaa #60
+ ldab #-70
+ aba
+ nop
+
+ ldaa #-60
+ ldab #-70
+ sba
+ nop
+
+ ldaa #70
+ ldab #-60
+ sba
+ nop
+
+ ldab num
+
+dly ldaa num
+loop deca
+ bne loop
+
+*
+**************************************************************************
+
+done