using loops in marie

2
Name: Ceferino Kevin A. TanCourse: BS Electronics Engineering EE 180.1 Section: M3 Mac!ine "ro#lem $ org 010 in%ut store a test& loa' ( su#t a s)i%con' 000  *um% EN+,-  *um% %roc ess %rocess& loa' ( s)i%con' 00  *um% %roc ess$ loa' a out%ut loa' ( a'' one store (  *um% test %rocess$& loa' ( su#t four s)i%con' 000  *um% %roc ess3 loa' ( a'' to store (  *um% test %rocess3& loa' ( out%ut a'' one store (  *um% test EN+,-& !alt (& 'ec 0 a& 'ec 0 one& 'ec 1 to& 'ec $ four& 'ec Start ,n%ut /alue for a En'  T est: is ( a N2  ES 2ut%ut /alue for a ,s ( 4 0  ES N2 C!ange ( 4 ( 5 1 ,s ( N2 2ut%ut /alue for ( C!ange ( 4 ( 5 $  ES C!ange ( 4 ( 5 1

Upload: ceferinotan

Post on 06-Jan-2016

216 views

Category:

Documents


0 download

DESCRIPTION

Using JUMP command to execute loop conditions

TRANSCRIPT

7/17/2019 USING LOOPS in MARIE

http://slidepdf.com/reader/full/using-loops-in-marie 1/1

Name: Ceferino Kevin A. TanCourse: BS Electronics EngineeringEE 180.1 Section: M3

Mac!ine "ro#lem $

org 010

in%ut

store atest& loa' (

su#t as)i%con' 000

 *um% EN+,- *um% %rocess

%rocess& loa' (s)i%con' 00

 *um% %rocess$loa' aout%ut

loa' (a'' onestore (

 *um% test

%rocess$& loa' (su#t fours)i%con' 000

 *um% %rocess3loa' (a'' tostore (

 *um% test

%rocess3& loa' (out%uta'' onestore (

 *um% test

EN+,-& !alt

(& 'ec 0a& 'ec 0one& 'ec 1to& 'ec $four& 'ec

Start ,n%ut /aluefor a

En'

 Test: is ( aN2

 ES

2ut%ut

/alue for a

,s ( 4 0 ES

N2

C!ange

( 4 ( 5 1

,s (

N22ut%ut

/alue for (

C!ange

( 4 ( 5 $

 ES

C!ange

( 4 ( 5 1