diff --git a/14display_diff_digit.asm b/14display_diff_digit.asm new file mode 100644 index 0000000..b6aab65 --- /dev/null +++ b/14display_diff_digit.asm @@ -0,0 +1,21 @@ + lui $s0, 0x4000 + addi $s0, $s0, 0x10 +main_loop: + addi $s1, $zero, 0x15b + sw $s1, 0($s0) + # wait + lui $t0, 0xff + addi $t0, $t0, 0xffff +wait_loop_1: + addi $t0, $t0, -1 + bgtz $t0, wait_loop_1 + + addi $s1, $zero, 0x177 + sw $s1, 0($s0) + + lui $t0, 0xff + addi $t0, $t0, 0xffff +wait_loop_2: + addi $t0, $t0, -1 + bgtz $t0, wait_loop_2 + j main_loop \ No newline at end of file diff --git a/14display_diff_digit.txt b/14display_diff_digit.txt new file mode 100644 index 0000000..469c678 --- /dev/null +++ b/14display_diff_digit.txt @@ -0,0 +1,19 @@ +20'd0: instruction <= 32'h3c104000; +20'd1: instruction <= 32'h22100010; +20'd2: instruction <= 32'h2011015b; +20'd3: instruction <= 32'hae110000; +20'd4: instruction <= 32'h3c0800ff; +20'd5: instruction <= 32'h3c010000; +20'd6: instruction <= 32'h3421ffff; +20'd7: instruction <= 32'h01014020; +20'd8: instruction <= 32'h2108ffff; +20'd9: instruction <= 32'h1d00fffe; +20'd10: instruction <= 32'h20110177; +20'd11: instruction <= 32'hae110000; +20'd12: instruction <= 32'h3c0800ff; +20'd13: instruction <= 32'h3c010000; +20'd14: instruction <= 32'h3421ffff; +20'd15: instruction <= 32'h01014020; +20'd16: instruction <= 32'h2108ffff; +20'd17: instruction <= 32'h1d00fffe; +20'd18: instruction <= 32'h08000002; diff --git a/14display_diff_digit_mars.txt b/14display_diff_digit_mars.txt new file mode 100644 index 0000000..b769707 --- /dev/null +++ b/14display_diff_digit_mars.txt @@ -0,0 +1,19 @@ +3c104000 +22100010 +2011015b +ae110000 +3c0800ff +3c010000 +3421ffff +01014020 +2108ffff +1d00fffe +20110177 +ae110000 +3c0800ff +3c010000 +3421ffff +01014020 +2108ffff +1d00fffe +08000002