Implementing the Sieve of Eratosthenes using the LC-3 Language

WTFMATE?

Advertisements

2 Responses to Implementing the Sieve of Eratosthenes using the LC-3 Language

  1. Dennis says:

    I haven’t read everything, just browsed through, but 0 and 1 are not primes. One (1) used to be considered a prime in the past, but it is not considered a prime anymore.
    You have stated in some parts that 0 and 1 are primes.

  2. Austin says:

    I have a question regarding your condition branches, for example:

    BRZP INNERLOOP ;CONTINUE WHILE NEGATIVE

    Doesn’t your code branches to INNERLOOP when the last register is zero or positive? Please clarify

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: