URL
https://opencores.org/ocsvn/t400/t400/trunk
Subversion Repositories t400
[/] [t400/] [trunk/] [sw/] [verif/] [include/] [pass_fail.asm] - Rev 176
Go to most recent revision | Compare with Previous | Blame | View Log
;; *******************************************************************
;; $Id: pass_fail.asm,v 1.1.1.1 2006-05-06 01:56:45 arniml Exp $
;;
;; Provides pass/fail signalling via port L.
;;
;; Result value is expected in accumuator.
;;
;; Signalling on L:
;; 0x0R
;; 0xaR
;; 0x5R
;; 0x0R -> pass
;; 0xfR -> fail
;;
;; catch spurious code execution
jmp fail
pass:
lei 0x4
;; save result to M
x 0x0
;; output 0x0R to Q
clra
camq
;; output 0xaR to Q
aisc 0xa
camq
;; output 0x5R to Q
clra
aisc 0x5
camq
;; output 0x0R to Q
clra
camq
jp .
fail:
lei 0x4
;; save result to M
x 0x0
;; output 0x0R to Q
clra
camq
;; output 0xaR to Q
aisc 0xa
camq
;; output 0x5R to Q
clra
aisc 0x5
camq
;; output 0xfR to Q
clra
aisc 0xf
camq
jp .
Go to most recent revision | Compare with Previous | Blame | View Log