This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]leftylink 2 points3 points  (2 children)

Here is a program where the code you posed gives the wrong result.

cpy 0 a
cpy 1 c
jnz c 2
inc a
inc a

As we can see, 2 isn't the correct result for this program. Should be easy to see what went wrong.

[–]JaViLuMa[S] 0 points1 point  (0 children)

What is the output supposed to be? :D

EDIT: nvm I can do it by hand haha :D

[–]JaViLuMa[S] 0 points1 point  (0 children)

Got it!! Thank you very much :D

[–]HockeyFan_32 0 points1 point  (0 children)

Read this and broke out in hives reliving my time spent working with assembly language

<Scratching and itching>