Understanding the Assembler Implementation

Posted by Jorge Bendahan on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Understanding-the-Assembler-Implementation-tp3157601.html

Hi, I'm making the hack assembler implementation in C Sharp and I'm trying to understand the C-instrution -> dest=comp;jump

//Either the dest or jump fields may be ommited.
// If dest is empty, the "=" is omitted;
// If jump is empty the ";" is omitted.

I'm failing to see in what cases you can code a full dest=comp;jump instruction. I'm just familiar with the following:

Ex 1. D=M (Where D is the "DEST" part of the instruction and M is "COMP" and there is no "JUMP")
Ex 2 D;JGT (where D is "COMP" and JGT is "JUMP" and there is no "DEST")

Can you write something like D=M;JGT?