etherforth_logo

Node 007

This node drives data bus of SRAM as instructed by controller node 008.

Source code

sram node 008 node 007
007 sram data
read 00 4 for unext @ !b ;
write 03 n !
drive 04 io a! 15555 out ! 14555 in ! data a! ; 0B

init left b! drive --l- ; 0F

1 l 5 d 0 ether

Definitions

read
Wait 12 ns, fetch data from DATA register and send to node 008.
write
Store data to DATA register and fall throught to
drive
Toggle data lines out and in, then load data to A. In other words, using A pointing to IO, drive lines with whatever data are in register DATA, then switch back to input direction of data lines, and set A back to DATA.
init
Set register B, call drive and jump to LEFT.

Description