It now adds 8 and 3, and prints the result, but it is not a universal 7 bit adder yet
This commit is contained in:
parent
7a148dc155
commit
eec3db9d32
22 changed files with 130 additions and 4 deletions
20
adder.tm
20
adder.tm
|
@ -60,7 +60,25 @@
|
|||
38:1,1,39,0,0,307
|
||||
|
||||
# If we get this far we have overflow and should end the program
|
||||
39:1,0,0,0,0,0
|
||||
39:1,0,510,0,0,0
|
||||
527:0,0,0,1,0,0
|
||||
526:0,0,527,1,0,527
|
||||
525:0,0,526,1,0,526
|
||||
524:0,0,525,1,0,525
|
||||
523:0,0,524,1,0,524
|
||||
522:0,0,523,1,0,523
|
||||
521:0,0,522,1,0,522
|
||||
520:0,0,521,1,0,521
|
||||
501:0,0,520,0,0,520
|
||||
502:0,0,501,1,0,501
|
||||
503:0,0,502,1,0,502
|
||||
504:0,0,503,1,0,503
|
||||
505:0,0,504,1,0,504
|
||||
506:0,0,505,1,0,505
|
||||
507:0,0,506,1,0,506
|
||||
508:0,0,507,1,0,507
|
||||
509:0,0,508,1,0,508
|
||||
510:0,0,509,1,0,509
|
||||
|
||||
# Here we need to go back to reg pos 0 after the decrementer is done
|
||||
300:0,0,41,0,0,41
|
||||
|
|
2
cards/14
2
cards/14
|
@ -1,4 +1,4 @@
|
|||
1
|
||||
0
|
||||
1
|
||||
15
|
||||
0
|
||||
|
|
2
cards/15
2
cards/15
|
@ -1,4 +1,4 @@
|
|||
0
|
||||
1
|
||||
1
|
||||
16
|
||||
0
|
||||
|
|
2
cards/39
2
cards/39
|
@ -1,6 +1,6 @@
|
|||
1
|
||||
0
|
||||
0
|
||||
510
|
||||
0
|
||||
0
|
||||
0
|
||||
|
|
6
cards/501
Normal file
6
cards/501
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
520
|
||||
0
|
||||
0
|
||||
520
|
6
cards/502
Normal file
6
cards/502
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
501
|
||||
1
|
||||
0
|
||||
501
|
6
cards/503
Normal file
6
cards/503
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
502
|
||||
1
|
||||
0
|
||||
502
|
6
cards/504
Normal file
6
cards/504
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
503
|
||||
1
|
||||
0
|
||||
503
|
6
cards/505
Normal file
6
cards/505
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
504
|
||||
1
|
||||
0
|
||||
504
|
6
cards/506
Normal file
6
cards/506
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
505
|
||||
1
|
||||
0
|
||||
505
|
6
cards/507
Normal file
6
cards/507
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
506
|
||||
1
|
||||
0
|
||||
506
|
6
cards/508
Normal file
6
cards/508
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
507
|
||||
1
|
||||
0
|
||||
507
|
6
cards/509
Normal file
6
cards/509
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
508
|
||||
1
|
||||
0
|
||||
508
|
6
cards/510
Normal file
6
cards/510
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
509
|
||||
1
|
||||
0
|
||||
509
|
6
cards/520
Normal file
6
cards/520
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
521
|
||||
1
|
||||
0
|
||||
521
|
6
cards/521
Normal file
6
cards/521
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
522
|
||||
1
|
||||
0
|
||||
522
|
6
cards/522
Normal file
6
cards/522
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
523
|
||||
1
|
||||
0
|
||||
523
|
6
cards/523
Normal file
6
cards/523
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
524
|
||||
1
|
||||
0
|
||||
524
|
6
cards/524
Normal file
6
cards/524
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
525
|
||||
1
|
||||
0
|
||||
525
|
6
cards/525
Normal file
6
cards/525
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
526
|
||||
1
|
||||
0
|
||||
526
|
6
cards/526
Normal file
6
cards/526
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
527
|
||||
1
|
||||
0
|
||||
527
|
6
cards/527
Normal file
6
cards/527
Normal file
|
@ -0,0 +1,6 @@
|
|||
0
|
||||
0
|
||||
0
|
||||
1
|
||||
0
|
||||
0
|
Loading…
Add table
Reference in a new issue