Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % 40 - st1 za odstevanje od N
- % 41 - st2 za pristevanje k
- % k lihi stevilki
- % 42 - trenutna liha cifra
- % - h kateri pristevamo 2
- % 100 - shranjen je N
- LOCO 4 % {N}
- % ce je N negativen, konca program
- JNEG K
- STOD 100
- % counter--
- LOCO 1
- STOD 40
- % odsteje 1 od N, da izvede samo
- % 4 korake, namesto 5
- LODD 100
- SUBD 40
- STOD 100
- % cifra += 2 (1, 3, 5)
- LOCO 2
- STOD 41
- % liha cifra
- LOCO 1
- STOD 42
- PUSH
- D LODD 42
- ADDD 41
- STOD 42
- PUSH
- LODD 100
- SUBD 40
- STOD 100
- LODD 100
- JNZE D
- K LOCO 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement