begin implementing iec_rx_byte and rest of LOAD sequence

This commit is contained in:
Paul Gardner-Stephen committed 2019-05-04 11:30:03 +09:30
1 parent 92ac67d6a7
commit dec2714ba0
3 files changed
+59 -3

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
;; Receive a byte from the IEC bus.
;; reference http://www.zimmers.net/anonftp/pub/cbm/programming/serial-bus.pdf
;; page 11.
iec_rx_byte:
;; First, we wait for the talker to release the CLK line.
jsr iec_wait_for_clock_release
;; We then release the data line
;; Wait for talker to assert CLK.
;; If >200usec, then it is EOI and we have to assert the
;; DATA line for 60 usec to tell the TALKER that we have
;; acknowledged the EOI.
;; CLK is now low. Latch input bits in on rising edge
;; of CLK, eight times for eight bits.
;; Then we must within 1000usec acknowledge the frame by
;; asserting DATA. At this point, CLK is asserted by the
;; talker and DATA by us, i.e., we are ready to receive
;; the next byte. (p11).