DRUID Development Docs: gtest.inc

Gadget Sourcecode: gtest.inc

; Justice Unlimited Gadget Microcode
; (C) 2004 Nathan (Acorn) Pooley 
;
; gtest.inc
;
;@DOC@ code to test the hardware
;

;############################################
;############### TEST MODE ##################
;############################################

#if ENABLE_TEST_MODE
testmode:


testmode_input:
    rcall   output_enable
    rcall   input_enable
    bcf     b_rbie

    movlw   str_test_input
    rcall   puts

testmode_input_loop:
    rcall   time
    movlw   27
    rcall   put_position
    movff   PORTB,v_tmp
    movlw   8
    movwf   v_tmp2

testmode_input_loop2:
    movlw   '0'
    rlcf    v_tmp,f
    btfsc   STATUS,C
    movlw   '1'
    rcall   putc
    decfsz  v_tmp2,f
    bra     testmode_input_loop2

    bra     testmode_input_loop


#endif ; ENABLE_TEST_MODE



This file Copyright (C) 2004 by Nathan (Acorn) Pooley
Go to DRUID Development page
Go to DRUID page
Go to JU Gadgets page
Go to Justice Unlimited homepage
Go to Acorn's personal webpage
Contact Acorn
See comments from others
Post your own comments
File created by do_doc at Wed Aug 4 18:03:14 2004