test3.pro

来自「Verilog HDL 入门教程」· PRO 代码 · 共 25 行

PRO
25
字号
//-------------------------------test3.pro??--------------------------------------------------------------------

@00 
    101_11000         //  00  	 LOOP:   LDA FN2    //load value in FN2 into accum
    0000_0001
    110_11000        //  02		 STO TEMP  	 //store accumulator in TEMP
    0000_0010
    010_11000       //  04 		ADD FN1    	 //add value in FN1 to accumulator
    0000_0000
    110_11000       //  06 		 STO FN2    	 //store result in FN2
    0000_0001
    101_11000       //  08 		 LDA TEMP   	 //load TEMP into the accumulator
    0000_0010
    110_11000        //  0a		 STO FN1   		//store accumulator in FN1
    0000_0000
    100_11000        //  0c 		XOR LIMIT 		 //compare accumulator to LIMIT
    0000_0011
    001_00000        //  0e		SKZ       		 //if accum = 0, skip to DONE
    0000_0000
    111_00000        //  10		JMP LOOP    //jump to address of LOOP
    0000_0000
    000_00000       //  12	DONE:   HLT        //end of program
    0000_0000
//-----------------------------test3.pro??--------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?