Assembly: Finding Composite Numbers

Posted on September 23, 2007 at 16:18 Assembly

This program asks for a numeric input and finds all the composite numbers up to that limit. I think this was our first “major” exercise in CMSC 131. I had to ask help from some of my classmates to fully accomplish it, particularly from Jen in changing a line in the increment block. Unlike inc, the add command was producing an infinite loop.

Problems like this are way easier to solve in high-level languages. So isn’t it rather fascinating how you do it the computer’s way?

P.S. There’s already a connection in the dorm! 😛 Not yet extended to the rooms though. Tsk.

composite.asm

Say What?

Name:
E-mail:
Website: (optional)