StackCPU is a custom CPU design that utilizes a stack-based memory model instead of the usual memory models seen in processors such as 6502 or Z80. The StackCPU project was undertaken mostly as an ...
where x is the sample program number and y is the desired interrupt timer (every y instructions an interrupt will occur). Your interrupt timer must be greater than 1 (I used modulus to implement the ...