From 0c6fcc3aab734227842a97b415039cb3940e6f7c Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 11 Sep 2022 01:13:35 -0400 Subject: [PATCH] Initial Commit --- .gitignore | 1 + C264k/Part2/P2.1-JP0.z80 | 9 +++++++++ C264k/Part2/Pt2.2-Write.z80 | 9 +++++++++ C264k/nop.z80 | 17 +++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 C264k/Part2/P2.1-JP0.z80 create mode 100644 C264k/Part2/Pt2.2-Write.z80 create mode 100644 C264k/nop.z80 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8a0dce --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.bin diff --git a/C264k/Part2/P2.1-JP0.z80 b/C264k/Part2/P2.1-JP0.z80 new file mode 100644 index 0000000..d8f558d --- /dev/null +++ b/C264k/Part2/P2.1-JP0.z80 @@ -0,0 +1,9 @@ +;Pt2.1-JP0.z80 + +org 0 ;Compile code to run at address $0000 + +loop: ;Label - an address referenced elsewhere in the code + jp loop ;Actual Z80 code - jump to 'loop' + +; https://bread80.com/2020/08/13/couch-to-64k-part-2-adding-rom-to-our-breadboard-z80-computer/ +; starts at address 0, advances to address 1, loops back to address 0 \ No newline at end of file diff --git a/C264k/Part2/Pt2.2-Write.z80 b/C264k/Part2/Pt2.2-Write.z80 new file mode 100644 index 0000000..a0946e5 --- /dev/null +++ b/C264k/Part2/Pt2.2-Write.z80 @@ -0,0 +1,9 @@ +;Pt2.2-Write.z80 + +org 0 + + ld hl,42 ;Load 42 into the HL register pair +loop: + ld (hl),a ;Load contents of the A register into the memory + ;address pointed to by HL + jr loop \ No newline at end of file diff --git a/C264k/nop.z80 b/C264k/nop.z80 new file mode 100644 index 0000000..b16db1f --- /dev/null +++ b/C264k/nop.z80 @@ -0,0 +1,17 @@ +org 0 +loop: +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +jp loop: \ No newline at end of file