Prime Number SDK6800

Discussion in 'Assembly Language Programming (ALP) Forum' started by soorajhaswani, Jan 14, 2013.

  1. soorajhaswani

    soorajhaswani New Member

    Jan 13, 2013
    Likes Received:
    Trophy Points:
    Create a 6800 program which determines if a number, n, is prime. A prime number has only two factors. Your program should work with any input for n where n >= 0 and n <= 127. If the number is prime, then print the letter Y to the display, otherwise print the letter N.

    The following example has n = 5 and should print Y since n is a prime number.

    n .byte 5


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice