|
my code is:
D=D-A
@JUMP1
D;JEQ
@0
D=A
@JUMP2
0;JMP
(JUMP1)
@-1
D=A
(JUMP2)
@17
D=A
In CPU emu the code is :
30 D=D-A
31 @115
32 D;JEQ
33 @0
34 D=A
35 @386
36 0;JMP
37
38 D=A
39 @17
the line of 37 is 0
when the emu execute the line 37 ,the PC is to set 0.the code was reseted.
why CPU emu has assemble this code to this form.
and why execute line 37 ,the PC was set 0.
Thank you!
|