;program to test CMP instruction
;when the first instruction is executed then if the accumulator is less
;than 0 the CI is incremented again (to 2).
;when the next instruction is fetched (line 3) the content of the accumulator
;is copied into line 5 of the store.
;the next instruction STP halts the program

00 NUM 0
01 CMP     ;if accumulator <0 then skip next instruction
02 STP     ;if accumulator > 0 then halt program 
03 STO 5   ;copy accumulator value into line 5
04 STP     ;halt the program
05 NUM 0   ;storage for accumulator if it is <0