Giving our CARDIAC computer some pointers to indirect addressing with self-modifying code
ฝัง
- เผยแพร่เมื่อ 15 ม.ค. 2025
- Our CARDIAC computer may not explicitly include indirect addressing, but that doesn't mean we can't use our brains to implement it in CARDIAC instructions! In this video I show you how you can implement indirect addressing, in which one memory cell refers to the contents of another memory cell, using a very short self modifying program that creates a new instruction from two memory cells. This program combines 100 and 042 to copy the value in memory cell 042 in the accumulator. I got this program from the CARDIAC tutorial on Brian Stewart's Drexel CS website (www.cs.drexel.....