OpenCores
URL https://opencores.org/ocsvn/light52/light52/trunk

Subversion Repositories light52

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /light52
    from Rev 23 to Rev 24
    Reverse comparison

Rev 23 → Rev 24

/trunk/test/cpu_test/src/tb51_cpu.a51
531,8 → 531,40
 
eot 'n',tc_n0
 
; (better read the following code in execution order)
mov ACC,#08h ; We'll be testing bits ACC.3 and ACC.2
sjmp tc_o1 ; jump forward so we can test jump backwards
tc_o2: mov c,ACC.3 ; make sure the target bit is clear
jc tc_o0
jbc ACC.2,tc_o0 ; JBC jumps not when target bit clear
sjmp tc_o3
tc_o1: jbc ACC.3,tc_o2 ; JBC jumps when target bit set
sjmp tc_o0
tc_o3:
 
eot 'o',tc_o0
 
mov 02eh,#00h ; We'll be testing bits ACC.3 and ACC.2
setb ACC.3
mov c,ACC.3
jnc tc_p0
setb ACC.2
mov c,ACC.2
jnc tc_p0
 
eot 'p',tc_p0
 
mov ACC,#80h ; We'll be testing bit ACC.7
jb ACC.7,tc_q1
sjmp tc_q0
tc_q1: clr ACC.7
jb ACC.7,tc_q0
cpl ACC.7
jnb ACC.7,tc_q0
 
eot 'q',tc_q0
 
 
put_crlf ; end of test series
 
;-- Test series D ------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.