Skip to content

Commit

Permalink
Fixed test 8a
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsponaugle committed Feb 16, 2024
1 parent b4f5f6f commit d087afd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion asm/test8.asm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ displp:
jzi dispdone
loadbr r1,r4 ; get the value from the table
cmp r3,r4
jzi displp ; if the memory location is not zero, this is not a prime, so go to the next one
jnzi displp ; if the memory location is not zero, this is not a prime, so go to the next one
calli sevseg ; if it is prime, print on the 7 segment display
jmpi displp
dispdone:
Expand Down
Binary file modified asm/test8.bin
Binary file not shown.
Binary file modified asm/test8.binh
Binary file not shown.
6 changes: 3 additions & 3 deletions asm/test8.lst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

*** Start of List File:test8.asm Completed 2024-02-16 10:13:05.260088
*** Start of List File:test8.asm Completed 2024-02-16 10:14:30.975285

LN# ADDR OPCD DATA SOURCE
------------------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -62,7 +62,7 @@ LN# ADDR OPCD DATA SOURCE
57 007E (59) B200 0092 jzi dispdone
58 0082 (15) 2B08 loadbr r1,r4 ; get the value from the table
59 0084 (12) 2423 cmp r3,r4
60 0086 (59) B200 0074 jzi displp ; if the memory location is not zero, this is not a prime, so
60 0086 (5A) B400 0074 jnzi displp ; if the memory location is not zero, this is not a prime, so
61 008A (78) F000 00C2 calli sevseg ; if it is prime, print on the 7 segment display
62 008E (58) B000 0074 jmpi displp
63 dispdone:
Expand Down Expand Up @@ -137,4 +137,4 @@ mk2 00B0
sevseg 00C2
sevsegd 00EE

*** End of List File:test8.asm Completed 2024-02-16 10:13:05.260325
*** End of List File:test8.asm Completed 2024-02-16 10:14:30.975500

0 comments on commit d087afd

Please sign in to comment.