Assembly: Finding Composite Numbers

Posted on 09/23/07 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! :P Not yet extended to the rooms though. Tsk.

composite.asm

Say What?

Name:
E-mail:
Website: (optional)
2 + 3 = ?

:angel: :blush: :cheerful: :confused: :cool: :crush: :cry: :devil: :duh: :faint: :laugh: :lol: :mad: :no: :omg: :pirate: :sad: :shock: :smile: :suspicious: :sweat: :tongue: :wink: :wtf:

eXTReMe Tracker