0INPMem[@] = Input
1OUTOutput = Mem[@]
2LDAAcc = Mem[@]
3LDIAcc = Mem[Mem[@]]
4STAMem[@] = Acc
5STIMem[Mem[@]] = Acc
6ADDAcc = Acc + Mem[@]
7SUBAcc = Acc - Mem[@]
8JAZ
9HRSAcc = 0; CO = 0; HALT;


   
   
   
   
   




CARDIAC COMPUTER SIMULATOR AND ASSEMBLER Simulator based on the original CARDIAC simulator written by Brian L. Stuart Adapted and extended by Alain Ketterlin and Cedric Bastoul (université d'informatioque de Strasbourg).