Display different num in one place

This commit is contained in:
unlockable
2024-07-11 16:07:18 +08:00
parent 79cbd5b0a4
commit 86bc0d2a4f
3 changed files with 59 additions and 0 deletions

21
14display_diff_digit.asm Normal file
View File

@@ -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

19
14display_diff_digit.txt Normal file
View File

@@ -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;

View File

@@ -0,0 +1,19 @@
3c104000
22100010
2011015b
ae110000
3c0800ff
3c010000
3421ffff
01014020
2108ffff
1d00fffe
20110177
ae110000
3c0800ff
3c010000
3421ffff
01014020
2108ffff
1d00fffe
08000002