ORG $2000 Array DC.B 5,8,9,25 result DS.B 1 count DC.B 4 ORG $8000 LDS #$4000 LDAA #4 LDX #Array JSR Division STAA result back BRA back Division CLRA LDD #Array LDX #$5 IDIV CMPD #0 BEQ result BRA notmult INC result notmult INX DEC count BNE Division
*** Edit ***
Changed topic title. Please use a descriptive topic title and put your question in the post.
This post has been edited by GunnerInc: 17 June 2012 - 07:37 AM
Reason for edit:: Added code tags and moved to Assembly

New Topic/Question
Reply


MultiQuote







|